Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06eaf193 authored by ztenghui's avatar ztenghui Committed by Tenghui Zhu
Browse files

End the animator when stop() is called

bug:16830053

Change-Id: If27ba904b0f78ee8c59df3522a97f5f86509ca0e
parent 79647500
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -312,9 +312,7 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable {
        final int size = animators.size();
        for (int i = 0; i < size; i++) {
            final Animator animator = animators.get(i);
            if (animator.isPaused()) {
                animator.resume();
            } else if (!animator.isRunning()) {
            if (!animator.isRunning()) {
                animator.start();
            }
        }
@@ -327,7 +325,7 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable {
        final int size = animators.size();
        for (int i = 0; i < size; i++) {
            final Animator animator = animators.get(i);
            animator.pause();
            animator.end();
        }
    }