Closed vince-styling closed 1 year ago
or it may dead loop decode and refresh the one frame
class GifDrawable { var loopCount: LoopCount get() = state.loopCount ?: state.gif.loopCount }
I change to :
get() = if (gif.isAnimated) gifState.loopCount ?: gif.loopCount else LoopCount.Fixed(1)
I'll look into it 👍
The shouldAnimate function actually already checks that the gif is animated, so I think it would not happen that we loop decode the one frame.
or it may dead loop decode and refresh the one frame
I change to :