Merge "The ValueAnimator's state need to be totally reset during clone."

This commit is contained in:
ztenghui
2015-04-10 20:48:49 +00:00
committed by Android (Google) Code Review

View File

@@ -1478,6 +1478,12 @@ public class ValueAnimator extends Animator {
anim.mInitialized = false;
anim.mPlayingState = STOPPED;
anim.mStartedDelay = false;
anim.mStarted = false;
anim.mRunning = false;
anim.mPaused = false;
anim.mResumed = false;
anim.mStartListenersCalled = false;
PropertyValuesHolder[] oldValues = mValues;
if (oldValues != null) {
int numValues = oldValues.length;