mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Fix using system emoji in condensed message mode.
This commit is contained in:
@@ -329,9 +329,13 @@ public class EmojiTextView extends AppCompatTextView {
|
|||||||
.append(Optional.ofNullable(overflowText).orElse(""));
|
.append(Optional.ofNullable(overflowText).orElse(""));
|
||||||
|
|
||||||
EmojiParser.CandidateList newCandidates = isInEditMode() ? null : EmojiProvider.getCandidates(newContent);
|
EmojiParser.CandidateList newCandidates = isInEditMode() ? null : EmojiProvider.getCandidates(newContent);
|
||||||
CharSequence emojified = EmojiProvider.emojify(newCandidates, newContent, this, isJumbomoji || forceJumboEmoji);
|
|
||||||
|
|
||||||
|
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);
|
super.setText(emojified, BufferType.SPANNABLE);
|
||||||
|
}
|
||||||
} else if (maxLength > 0) {
|
} else if (maxLength > 0) {
|
||||||
ellipsizeAnyTextForMaxLength();
|
ellipsizeAnyTextForMaxLength();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user