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

Commit 5dfe9d30 authored by ztenghui's avatar ztenghui Committed by Android (Google) Code Review
Browse files

Merge "Add reset to AVD" into mnc-dev

parents 6f4610bd 96052718
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12191,6 +12191,7 @@ package android.graphics.drawable {
    method public int getOpacity();
    method public boolean isRunning();
    method public void registerAnimationCallback(android.graphics.drawable.Animatable2.AnimationCallback);
    method public void reset();
    method public void setAlpha(int);
    method public void setColorFilter(android.graphics.ColorFilter);
    method public void start();
+1 −0
Original line number Diff line number Diff line
@@ -12504,6 +12504,7 @@ package android.graphics.drawable {
    method public int getOpacity();
    method public boolean isRunning();
    method public void registerAnimationCallback(android.graphics.drawable.Animatable2.AnimationCallback);
    method public void reset();
    method public void setAlpha(int);
    method public void setColorFilter(android.graphics.ColorFilter);
    method public void start();
+9 −0
Original line number Diff line number Diff line
@@ -578,6 +578,15 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable2 {
        return mAnimatorSet.isStarted();
    }

    /**
     * Resets the AnimatedVectorDrawable to the start state as specified in the animators.
     */
    public void reset() {
        // TODO: Use reverse or seek to implement reset, when AnimatorSet supports them.
        start();
        mAnimatorSet.cancel();
    }

    @Override
    public void start() {
        ensureAnimatorSet();