Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 154f1450 authored by Chet Haase's avatar Chet Haase
Browse files

Fix bug with bad state in animators

Bug 3482310: The playing state was not being correctly set to
RUNNING after an animator was start()'d. Instead, we were seeking
to the start value (correct), setting the state to SEEKED (also correct),
but not resetting the playing state to STOPPED. So when the animation
actually started animating values, it didn't recognize that it was
starting a STOPPED animation, so it never set its state to RUNNING,
and never returned true from isRunning().

Change-Id: Iea92dce98f92f60052d8a9a451094b953f9f0c67
parent 2fad6162
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -902,6 +902,7 @@ public class ValueAnimator extends Animator {
        if (mStartDelay == 0) {
            // This sets the initial value of the animation, prior to actually starting it running
            setCurrentPlayTime(getCurrentPlayTime());
            mPlayingState = STOPPED;

            if (mListeners != null) {
                ArrayList<AnimatorListener> tmpListeners =