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

Commit d46cf713 authored by ztenghui's avatar ztenghui Committed by android-build-merger
Browse files

Merge "AVD: Requires all animator has stopped before start again." into lmp-mr1-dev

automerge: ffcb5e21

* commit 'ffcb5e21':
  AVD: Requires all animator has stopped before start again.
parents 1c252a6f ffcb5e21
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -435,14 +435,17 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable {

    @Override
    public void start() {
        // If any one of the animator has not ended, do nothing.
        if (isStarted()) {
            return;
        }
        // Otherwise, kick off every animator.
        final ArrayList<Animator> animators = mAnimatedVectorState.mAnimators;
        final int size = animators.size();
        for (int i = 0; i < size; i++) {
            final Animator animator = animators.get(i);
            if (!animator.isStarted()) {
            animator.start();
        }
        }
        invalidateSelf();
    }