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

* commit '04c022f4c12a778027957a266dd9fce2b70a1cb0':
  AVD: Deep copy the animator target setup when mutate.
This commit is contained in:
ztenghui
2014-12-05 18:35:49 +00:00
committed by Android Git Automerger

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;