Skip to content

Commit c487add

Browse files
authored
Merge pull request #5091 from vector-im/feature/adm/timeline-item-crash
Timeline recycling crash
2 parents 0b66419 + 2eeeefd commit c487add

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.d/5091.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixing crashes when quickly scrolling or restoring the room timeline

vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageTextItem.kt

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ abstract class MessageTextItem : AbsMessageItem<MessageTextItem.Holder>() {
109109
val textFuture = PrecomputedTextCompat.getTextFuture(message, TextViewCompat.getTextMetricsParams(this), null)
110110
setTextFuture(textFuture)
111111
} else {
112+
setTextFuture(null)
112113
text = message
113114
}
114115
}

0 commit comments

Comments
 (0)