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 4846702ee4b..136dbfb3712 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 @@ -355,7 +355,7 @@ private void ellipsizeEmojiTextForMaxLines() { } int overflowEnd = getLayout().getLineEnd(maxLines); - CharSequence overflow = getText().subSequence(overflowStart, overflowEnd); + CharSequence overflow = new SpannableString(getText().subSequence(overflowStart, overflowEnd).toString()); float adjust = overflowText != null ? getPaint().measureText(overflowText, 0, overflowText.length()) : 0f; CharSequence ellipsized = TextUtils.ellipsize(overflow, getPaint(), getWidth() - adjust, TextUtils.TruncateAt.END);