mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 11:46:32 +00:00
Fix GIF animation by checking Drawable
In onSuccess, use if (drawable is Animatable) to start GIFs instead of checking the Coil Image result.
This commit is contained in:
parent
1bfb5b3ff3
commit
061eeea313
1 changed files with 2 additions and 2 deletions
|
|
@ -205,8 +205,8 @@ class AvatarView : FrameLayout {
|
|||
drawable.isFilterBitmap = false
|
||||
super.onSuccess(result)
|
||||
imageView.setImageDrawable(drawable)
|
||||
if (result is Animatable) {
|
||||
result.start()
|
||||
if (drawable is Animatable) {
|
||||
drawable.start()
|
||||
}
|
||||
val bounds = getLayerBounds(layerKey, layerName, drawable)
|
||||
imageView.imageMatrix = avatarMatrix
|
||||
|
|
|
|||
Loading…
Reference in a new issue