From 08e1d0372c3daffa84f22dbb6a0e04c94a400c2b Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 15 Oct 2021 17:29:55 +0800 Subject: [PATCH] fix when play finished,cannot start animation again --- .../com/github/penfeizhou/animation/FrameAnimationDrawable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameanimation/src/main/java/com/github/penfeizhou/animation/FrameAnimationDrawable.java b/frameanimation/src/main/java/com/github/penfeizhou/animation/FrameAnimationDrawable.java index 8ac1fad8..fdd1e485 100644 --- a/frameanimation/src/main/java/com/github/penfeizhou/animation/FrameAnimationDrawable.java +++ b/frameanimation/src/main/java/com/github/penfeizhou/animation/FrameAnimationDrawable.java @@ -125,9 +125,9 @@ public boolean isPaused() { @Override public void start() { if (this.frameSeqDecoder.isRunning()) { - this.frameSeqDecoder.reset(); this.frameSeqDecoder.stop(); } + this.frameSeqDecoder.reset(); innerStart(); }