Merge "Move setCurrentPlayTime before starting animation." into udc-dev am: a9a2ec9b55
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22895085 Change-Id: Id135816aa6c33a4a6af5280bf47dd395e007a47a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user