summaryrefslogtreecommitdiffstats
path: root/core/java/android/animation
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2015-04-10 20:48:49 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-10 20:49:00 +0000
commit4e1e6af4766500eb895be50cd7247438bf5dfcd5 (patch)
tree602bd10f56e49058d78644c60b78eaa921eeebdd /core/java/android/animation
parent08f90af8030c9b61f53486a694d53abd24ea9293 (diff)
parent26e9a19900bae56b012425a114685d42dfa2fde1 (diff)
downloadframeworks_base-4e1e6af4766500eb895be50cd7247438bf5dfcd5.zip
frameworks_base-4e1e6af4766500eb895be50cd7247438bf5dfcd5.tar.gz
frameworks_base-4e1e6af4766500eb895be50cd7247438bf5dfcd5.tar.bz2
Merge "The ValueAnimator's state need to be totally reset during clone."
Diffstat (limited to 'core/java/android/animation')
-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 2386007..6ffa5dd 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;