Apply ouchadam's suggestion. It's only accessed by the main thread.
This commit is contained in:
parent
32573881e4
commit
5df0488cf2
@ -37,7 +37,7 @@ class TypingMessageAvatar @JvmOverloads constructor(
|
|||||||
const val OVERLAP_FACT0R = -3 // =~ 30% to left
|
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()
|
context.resources.getDimension(R.dimen.typing_avatar_size).toInt()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user