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

Commit 68b296fc authored by George Mount's avatar George Mount Committed by Android (Google) Code Review
Browse files

Merge "Start seeked animators without waiting for start delay." into nyc-dev

parents 69a3345e 907c177b
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.