Merge pull request #5091 from vector-im/feature/adm/timeline-item-crash
Timeline recycling crash
This commit is contained in:
commit
c487add2cd
|
@ -0,0 +1 @@
|
|||
Fixing crashes when quickly scrolling or restoring the room timeline
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue