From 50881f1193bb6d93a97b29daf20e7012ae51043e Mon Sep 17 00:00:00 2001 From: Malik Mukhametzyanov Date: Sat, 16 Nov 2024 01:07:27 +0300 Subject: [PATCH] Update AnimatedDrawable.kt --- .../com/awxkee/jxlcoder/animation/AnimatedDrawable.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jxlcoder/src/main/java/com/awxkee/jxlcoder/animation/AnimatedDrawable.kt b/jxlcoder/src/main/java/com/awxkee/jxlcoder/animation/AnimatedDrawable.kt index e0b315d..433e1ab 100644 --- a/jxlcoder/src/main/java/com/awxkee/jxlcoder/animation/AnimatedDrawable.kt +++ b/jxlcoder/src/main/java/com/awxkee/jxlcoder/animation/AnimatedDrawable.kt @@ -227,12 +227,12 @@ public class AnimatedDrawable( paint.alpha = alpha } - override fun getIntrinsicHeight(): Int { - return frameStore.height + override fun getIntrinsicHeight(): Int { + return bounds.height() } override fun getIntrinsicWidth(): Int { - return frameStore.width + return bounds.width() } override fun setColorFilter(colorFilter: ColorFilter?) { @@ -302,4 +302,4 @@ public class AnimatedDrawable( stop() } -} \ No newline at end of file +}