am 971fe6d6: am 04c022f4: Merge "AVD: Deep copy the animator target setup when mutate." into lmp-mr1-dev

* commit '971fe6d66419065b96b46a20b7110ba435fa3a9a':
  AVD: Deep copy the animator target setup when mutate.
This commit is contained in:
ztenghui
2014-12-08 19:15:36 +00:00
committed by Android Git Automerger

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;