Merge "Move setCurrentPlayTime before starting animation." into udc-dev am: a9a2ec9b55 am: 168f9548fc

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22895085

Change-Id: Ia5123f7053bea7dfa0976075a3904ee53398328b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-04-27 02:15:24 +00:00
committed by Automerger Merge Worker
@@ -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();
}
}