From 22b64a3e9ad0567e5435a54045fe7cdea5f59cf1 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 28 Jan 2022 12:05:12 +0000 Subject: [PATCH 1/2] resetting text futures when updating recycled text --- .../features/home/room/detail/timeline/item/MessageTextItem.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageTextItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageTextItem.kt index 1794f04c2a..e5ac321d90 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageTextItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageTextItem.kt @@ -109,6 +109,7 @@ abstract class MessageTextItem : AbsMessageItem() { val textFuture = PrecomputedTextCompat.getTextFuture(message, TextViewCompat.getTextMetricsParams(this), null) setTextFuture(textFuture) } else { + setTextFuture(null) text = message } } From 2eeeefdf49b4a127e0b8f3067708bc648e0dc8fc Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 28 Jan 2022 12:11:54 +0000 Subject: [PATCH 2/2] adding changelog entry --- changelog.d/5091.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/5091.bugfix diff --git a/changelog.d/5091.bugfix b/changelog.d/5091.bugfix new file mode 100644 index 0000000000..cf55a6dd10 --- /dev/null +++ b/changelog.d/5091.bugfix @@ -0,0 +1 @@ +Fixing crashes when quickly scrolling or restoring the room timeline \ No newline at end of file