From 73954df6455e9f0b36338c04145904e1dab3d3e3 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Mon, 14 May 2018 11:23:51 -0700 Subject: [PATCH] Ensure that animaiton.end() is properly dispatched When window animation is cancelled, we skip running the animation. But since we initialize the UI before the animation started, the UI is never reset. Bug: 79657221 Change-Id: Ic420d1d99f5242541e6809f3207355ea9876ca9c --- quickstep/src/com/android/launcher3/LauncherAnimationRunner.java | 1 + 1 file changed, 1 insertion(+) diff --git a/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java b/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java index 2939914250..e34631042d 100644 --- a/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java +++ b/quickstep/src/com/android/launcher3/LauncherAnimationRunner.java @@ -118,6 +118,7 @@ public abstract class LauncherAnimationRunner implements RemoteAnimationRunnerCo finish(); } else if (mFinished) { // Animation callback was already finished, skip the animation. + mAnimator.start(); mAnimator.end(); } else { // Start the animation