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

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

Merge "AVD: Deep copy the animator target setup when mutate." into lmp-mr1-dev

parents ffbb52d0 d2f50c78
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -146,7 +146,8 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable {
    @Override
    public Drawable mutate() {
        if (!mMutated && super.mutate() == this) {
            mAnimatedVectorState.mVectorDrawable.mutate();
            mAnimatedVectorState = new AnimatedVectorDrawableState(
                    mAnimatedVectorState, mCallback, null);
            mMutated = true;
        }
        return this;