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

This commit is contained in:
ztenghui
2014-12-05 18:28:28 +00:00
committed by Android (Google) Code Review

View File

@@ -146,7 +146,8 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable {
@Override @Override
public Drawable mutate() { public Drawable mutate() {
if (!mMutated && super.mutate() == this) { if (!mMutated && super.mutate() == this) {
mAnimatedVectorState.mVectorDrawable.mutate(); mAnimatedVectorState = new AnimatedVectorDrawableState(
mAnimatedVectorState, mCallback, null);
mMutated = true; mMutated = true;
} }
return this; return this;