Move bubble rendering from onMeasure to onLayout.

fork-5.53.8
Alex Hart 2021-06-07 09:16:18 -03:00
rodzic 835d7f5ccb
commit 06aec0b7d7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -107,8 +107,8 @@ class ChatColorPreviewView @JvmOverloads constructor(
} }
} }
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec) super.onLayout(changed, left, top, right, bottom)
if (chatColors != null) { if (chatColors != null) {
setChatColors(requireNotNull(chatColors)) setChatColors(requireNotNull(chatColors))