Skip to content

Commit

Permalink
Update AnimatedDrawable.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN authored Nov 15, 2024
1 parent 6d7d2a2 commit 50881f1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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?) {
Expand Down Expand Up @@ -302,4 +302,4 @@ public class AnimatedDrawable(
stop()
}

}
}

0 comments on commit 50881f1

Please sign in to comment.