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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user