Skip to content

Commit

Permalink
resetting text futures when updating recycled text
Browse files Browse the repository at this point in the history
  • Loading branch information
ouchadam committed Jan 28, 2022
1 parent 0b66419 commit 22b64a3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ abstract class MessageTextItem : AbsMessageItem<MessageTextItem.Holder>() {
val textFuture = PrecomputedTextCompat.getTextFuture(message, TextViewCompat.getTextMetricsParams(this), null)
setTextFuture(textFuture)
} else {
setTextFuture(null)
text = message
}
}
Expand Down

0 comments on commit 22b64a3

Please sign in to comment.