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
public Drawable mutate() {
if (!mMutated && super.mutate() == this) {
mAnimatedVectorState.mVectorDrawable.mutate();
mAnimatedVectorState = new AnimatedVectorDrawableState(
mAnimatedVectorState, mCallback, null);
mMutated = true;
}
return this;