kopia lustrzana https://github.com/ryukoposting/Signal-Android
Move bubble rendering from onMeasure to onLayout.
rodzic
835d7f5ccb
commit
06aec0b7d7
|
@ -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))
|
||||||
|
|
Ładowanie…
Reference in New Issue