summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2015-01-23 17:56:57 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-01-23 17:56:59 +0000
commitaf8c621d2165248cdb60699a6655e56e7dfa2e05 (patch)
tree35023225129e9e9b68f3c832802e6d393363c57e
parente77adabeafa16f9b401a6ad67405205bd96f2219 (diff)
parentd15e94f0309a91d5a75d03a9ae165121e7f24907 (diff)
downloadframeworks_base-af8c621d2165248cdb60699a6655e56e7dfa2e05.zip
frameworks_base-af8c621d2165248cdb60699a6655e56e7dfa2e05.tar.gz
frameworks_base-af8c621d2165248cdb60699a6655e56e7dfa2e05.tar.bz2
Merge "Allow infinite-repeat zero-duration animators to continue repeating" into lmp-mr1-dev
-rw-r--r--core/java/android/animation/ValueAnimator.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/animation/ValueAnimator.java b/core/java/android/animation/ValueAnimator.java
index 8b70ae6..9709555 100644
--- a/core/java/android/animation/ValueAnimator.java
+++ b/core/java/android/animation/ValueAnimator.java
@@ -1273,8 +1273,7 @@ public class ValueAnimator extends Animator {
}
}
if (fraction >= 1f) {
- if (mCurrentIteration < mRepeatCount ||
- (mRepeatCount == INFINITE && mDuration != 0)) {
+ if (mCurrentIteration < mRepeatCount || mRepeatCount == INFINITE) {
// Time to repeat
if (mListeners != null) {
int numListeners = mListeners.size();