Merge "Move setCurrentPlayTime before starting animation." into udc-dev

This commit is contained in:
Treehugger Robot
2023-04-27 01:00:56 +00:00
committed by Android (Google) Code Review

View File

@@ -196,14 +196,13 @@ public class LauncherAnimationRunner extends RemoteAnimationRunnerCompat {
finish();
}
});
mAnimator.start();
if (skipFirstFrame) {
// Because t=0 has the app icon in its original spot, we can skip the
// first frame and have the same movement one frame earlier.
mAnimator.setCurrentPlayTime(
Math.min(getSingleFrameMs(context), mAnimator.getTotalDuration()));
}
mAnimator.start();
}
}