v1.9.0
Important API Changes
Some APIs are marked as deprecated.
ApngDrawable.currentRepeatCount
is deprecated. Please useApngDrawable.currentLoopIndex
instead.- e.g. In the first loop,
currentRepeatCount
becomes1
andcurrentLoopIndex
becomes0
.
- e.g. In the first loop,
RepeatAnimationCallback.onRepeat
is deprecated. Please useRepeatAnimationCallback.onAnimationRepeat
.- In the previous implementation, the 2nd argument
nextLoop
is 1 based index. - In the current implementation, the 2nd argument
nextLoopIndex
is 0 based index. RepeatAnimationCallback
has both of interface function with default implementation temporary for backward compatibility. They will be removed at the next version.
- In the previous implementation, the 2nd argument
New feature
- Introduce
ApngDrawable.seekToFrame
andApngDrawable.frameDurations
. #68
Fixes
isApng
returns true whenever the image isn't APNG format. Thanks @potetisensei #65