Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9a2ec9b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

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

parents af555727 77b17547
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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();
            }
        }