diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/emoji/EmojiTextView.java b/app/src/main/java/org/thoughtcrime/securesms/components/emoji/EmojiTextView.java index 35d0574881f..705107fde1d 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/emoji/EmojiTextView.java +++ b/app/src/main/java/org/thoughtcrime/securesms/components/emoji/EmojiTextView.java @@ -152,10 +152,10 @@ public void setText(@Nullable CharSequence text, BufferType type) { // Android fails to ellipsize spannable strings. (https://issuetracker.google.com/issues/36991688) // We ellipsize them ourselves by manually truncating the appropriate section. if (getText() != null && getText().length() > 0 && isEllipsizedAtEnd()) { - if (getMaxLines() > 0) { - ellipsizeEmojiTextForMaxLines(); - } else if (maxLength > 0) { + if (maxLength > 0) { ellipsizeAnyTextForMaxLength(); + } else if (getMaxLines() > 0) { + ellipsizeEmojiTextForMaxLines(); } }