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

am: 68b296f

* commit '68b296fce10a9385c87259475115a87af1872127':
  Start seeked animators without waiting for start delay.
This commit is contained in:
George Mount
2016-03-25 14:21:32 +00:00
committed by android-build-merger

View File

@@ -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.