Apply ouchadam's suggestion. It's only accessed by the main thread.

This commit is contained in:
Benoit Marty 2022-05-17 14:44:43 +02:00
parent 32573881e4
commit 5df0488cf2
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}