android-gif-drawable
android-gif-drawable copied to clipboard
AnimationListener Not Work
I have an animation, about 270ms, but I did not execute onAnimationCompleted after execution.
GifDrawable gifDrawable = new GifDrawable(bitmap.getX());
gifDrawable.setLoopCount(1);
if (gifDrawable.getDuration() > 100) {
gifDrawable.addAnimationListener(new AnimationListener() {
@Override
public void onAnimationCompleted(int loopNumber) {
Log.e("liumj","走了onAnimationCompleted");
}
);
}
gifDrawable.start();
Could you attach affected GIF file here or send it via e-mail?
https://img.douyucdn.cn/data/yuba/default/2018/10/12/20181012182540456284717823.gif?i=265ae1dd4a52b5e8bb5ec27d356ee25612
Thanks, I'll check that.
I was able to reproduce this issue. I'll fix it ASAP.
@koral-- Is this fixed? Can I work on this?
Sorry for the delay, it is not fixed yet.
can u assign me to fix the issue