summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chet Haase <chet@google.com> 2012-09-12 17:30:15 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-09-12 17:30:16 -0700
commit0c348b6dd734e1d10d3b51ea95f60900789f0310 (patch)
treed88fb54fa34ced64e9a4c05656c7cb68b65d9b99
parent51e67a0a742e86415314b2d9261b1abf47a64165 (diff)
parent4dd176864310e1d9519bf6b88918913e9927984f (diff)
Merge "end() a reverse()'d animation correctly" into jb-mr1-dev
-rwxr-xr-xcore/java/android/animation/ValueAnimator.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/core/java/android/animation/ValueAnimator.java b/core/java/android/animation/ValueAnimator.java
index f874d56074c7..f7460c44034f 100755
--- a/core/java/android/animation/ValueAnimator.java
+++ b/core/java/android/animation/ValueAnimator.java
@@ -958,13 +958,7 @@ public class ValueAnimator extends Animator {
} else if (!mInitialized) {
initAnimation();
}
- // The final value set on the target varies, depending on whether the animation
- // was supposed to repeat an odd number of times
- if (mRepeatCount > 0 && (mRepeatCount & 0x01) == 1) {
- animateValue(0f);
- } else {
- animateValue(1f);
- }
+ animateValue(mPlayingBackwards ? 0f : 1f);
endAnimation(handler);
}