Fix using system emoji in condensed message mode.

main
Greyson Parrelli 2023-02-22 13:12:28 -05:00
rodzic 17aa0365d6
commit b689ea62a6
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -329,9 +329,13 @@ public class EmojiTextView extends AppCompatTextView {
.append(Optional.ofNullable(overflowText).orElse(""));
EmojiParser.CandidateList newCandidates = isInEditMode() ? null : EmojiProvider.getCandidates(newContent);
CharSequence emojified = EmojiProvider.emojify(newCandidates, newContent, this, isJumbomoji || forceJumboEmoji);
super.setText(emojified, BufferType.SPANNABLE);
if (useSystemEmoji || newCandidates == null || newCandidates.size() == 0) {
super.setText(newContent, BufferType.SPANNABLE);
} else {
CharSequence emojified = EmojiProvider.emojify(newCandidates, newContent, this, isJumbomoji || forceJumboEmoji);
super.setText(emojified, BufferType.SPANNABLE);
}
} else if (maxLength > 0) {
ellipsizeAnyTextForMaxLength();
}