summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author ztenghui <ztenghui@google.com> 2015-04-10 20:48:49 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-04-10 20:49:00 +0000
commit4e1e6af4766500eb895be50cd7247438bf5dfcd5 (patch)
tree602bd10f56e49058d78644c60b78eaa921eeebdd
parent08f90af8030c9b61f53486a694d53abd24ea9293 (diff)
parent26e9a19900bae56b012425a114685d42dfa2fde1 (diff)
Merge "The ValueAnimator's state need to be totally reset during clone."
-rw-r--r--core/java/android/animation/ValueAnimator.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/animation/ValueAnimator.java b/core/java/android/animation/ValueAnimator.java
index 2386007b8ac2..6ffa5dde53ca 100644
--- a/core/java/android/animation/ValueAnimator.java
+++ b/core/java/android/animation/ValueAnimator.java
@@ -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;