Skip to content

Commit

Permalink
Partitialy revert read more fix for See Replies.
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-signal committed Jul 26, 2022
1 parent 6c42ded commit eaa2d58
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit eaa2d58

Please sign in to comment.