From 06aec0b7d764608501c783055fa962a83aea81ef Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Mon, 7 Jun 2021 09:16:18 -0300 Subject: [PATCH] Move bubble rendering from onMeasure to onLayout. --- .../securesms/conversation/colors/ui/ChatColorPreviewView.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/ChatColorPreviewView.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/ChatColorPreviewView.kt index 75428ac85d..354dff4b93 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/ChatColorPreviewView.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/ChatColorPreviewView.kt @@ -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))