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

Commit 907c177b authored by George Mount's avatar George Mount
Browse files

Start seeked animators without waiting for start delay.

Bug 24872727

Change-Id: I954efd7113565f9b8f9a569f57960b8d91620758
parent 3e2b413d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -967,7 +967,7 @@ public class ValueAnimator extends Animator implements AnimationHandler.Animatio
        AnimationHandler animationHandler = AnimationHandler.getInstance();
        animationHandler.addAnimationFrameCallback(this, (long) (mStartDelay * sDurationScale));

        if (mStartDelay == 0) {
        if (mStartDelay == 0 || mSeekFraction >= 0) {
            // If there's no start delay, init the animation and notify start listeners right away
            // to be consistent with the previous behavior. Otherwise, postpone this until the first
            // frame after the start delay.