From 77b17547c3183fe4ef5a394d2bd911d835543c61 Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Wed, 26 Apr 2023 12:05:04 -0700 Subject: [PATCH] Move setCurrentPlayTime before starting animation. Otherwise when animations are turned off, the animation will start/end and then gets stuck to the first frame of the animation. Fixes: 278046913 Change-Id: I5f0ed4b99ab4737b5371d65754d1acb4fdb8edb0 Flag: none Test: swipe to go home --- .../src/com/android/launcher3/LauncherAnimationRunner.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java b/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java index 18fe30d81d..5d4e19dbcc 100644 --- a/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java +++ b/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java @@ -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(); } }