diff options
author | Chet Haase <chet@google.com> | 2013-03-15 13:04:42 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2013-03-15 13:04:42 -0700 |
commit | caf46486f54cdc899e383dfc776ec33a81b089a1 (patch) | |
tree | 7c996ab9f809451ee73c78401ce85f1c12cb7bd6 /core/java/android/animation | |
parent | 36818c414d5ccd23ea7bb68993b007aee50a8cc6 (diff) | |
download | frameworks_base-caf46486f54cdc899e383dfc776ec33a81b089a1.zip frameworks_base-caf46486f54cdc899e383dfc776ec33a81b089a1.tar.gz frameworks_base-caf46486f54cdc899e383dfc776ec33a81b089a1.tar.bz2 |
Reset reverse state when an animator ends
Seeking an animation after the animator has reverse()'d to the beginning
will result in seeking in reverse. Starting the animation will make it proceed
normally, and calling reverse() will also give expected behavior. But seeking
causes this unexpected behavior because the state of reversing is not reset until
the next time the animation is played (either by start() or reverse()).
Fix is to reset the internal flag when the animator ends.
Issue #8234676 Reversing an Animator Leaves it in A Reversed State Until Explicitly Started
Change-Id: I9d212ae1879aa277d1add7eb4c7ec61432af059e
Diffstat (limited to 'core/java/android/animation')
-rw-r--r-- | core/java/android/animation/ValueAnimator.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/animation/ValueAnimator.java b/core/java/android/animation/ValueAnimator.java index f7460c4..4a58072 100644 --- a/core/java/android/animation/ValueAnimator.java +++ b/core/java/android/animation/ValueAnimator.java @@ -1015,6 +1015,7 @@ public class ValueAnimator extends Animator { mRunning = false; mStarted = false; mStartListenersCalled = false; + mPlayingBackwards = false; } /** |