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) {
|
||||
super.onMeasure(widthMeasureSpec, heightMeasureSpec)
|
||||
override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int) {
|
||||
super.onLayout(changed, left, top, right, bottom)
|
||||
|
||||
if (chatColors != null) {
|
||||
setChatColors(requireNotNull(chatColors))
|
||||
|
|
Ładowanie…
Reference in New Issue