1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-13 21:10:43 +01:00

Fix emoji display in signed channel message

This commit is contained in:
luvletter2333 2021-05-02 00:17:03 +08:00
parent fa796e34d6
commit 854b68a3c1
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8

View File

@ -6752,7 +6752,8 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
if (timeTextWidth < 0) { if (timeTextWidth < 0) {
timeTextWidth = AndroidUtilities.dp(10); timeTextWidth = AndroidUtilities.dp(10);
} }
timeLayout = new StaticLayout(currentTimeString, Theme.chat_timePaint, timeTextWidth + AndroidUtilities.dp(100), Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false); CharSequence currentTime = Emoji.replaceEmoji(currentTimeString, Theme.chat_timePaint.getFontMetricsInt(), AndroidUtilities.dp(12), false);
timeLayout = new StaticLayout(currentTime, Theme.chat_timePaint, timeTextWidth + AndroidUtilities.dp(100), Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);
if (mediaBackground) { if (mediaBackground) {
if (currentMessageObject.isOutOwner()) { if (currentMessageObject.isOutOwner()) {
timeX = layoutWidth - timeWidth - AndroidUtilities.dp(42.0f); timeX = layoutWidth - timeWidth - AndroidUtilities.dp(42.0f);