Re-enable the 'read more' text in see replies mode.

This commit is contained in:
Greyson Parrelli 2022-07-29 12:35:41 -04:00
parent 9cd1971329
commit cb9a219c4b

View file

@ -152,10 +152,10 @@ public class EmojiTextView extends AppCompatTextView {
// 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 (maxLength > 0) {
ellipsizeAnyTextForMaxLength();
} else if (getMaxLines() > 0) {
if (getMaxLines() > 0 && getMaxLines() != Integer.MAX_VALUE) {
ellipsizeEmojiTextForMaxLines();
} else if (maxLength > 0) {
ellipsizeAnyTextForMaxLength();
}
}