From 5df0488cf29284253a9a6bbbc3d0add8ae19f951 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 17 May 2022 14:44:43 +0200 Subject: [PATCH] Apply ouchadam's suggestion. It's only accessed by the main thread. --- .../java/im/vector/app/core/ui/views/TypingMessageAvatar.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/core/ui/views/TypingMessageAvatar.kt b/vector/src/main/java/im/vector/app/core/ui/views/TypingMessageAvatar.kt index 63c5c2947e..1f78584a6b 100644 --- a/vector/src/main/java/im/vector/app/core/ui/views/TypingMessageAvatar.kt +++ b/vector/src/main/java/im/vector/app/core/ui/views/TypingMessageAvatar.kt @@ -37,7 +37,7 @@ class TypingMessageAvatar @JvmOverloads constructor( const val OVERLAP_FACT0R = -3 // =~ 30% to left } - private val typingAvatarSize by lazy { + private val typingAvatarSize by lazy(LazyThreadSafetyMode.NONE) { context.resources.getDimension(R.dimen.typing_avatar_size).toInt() }