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
This commit is contained in:
Sunny Goyal 2018-05-14 11:23:51 -07:00
parent 99dcc9fd83
commit 73954df645
1 changed files with 1 additions and 0 deletions

View File

@ -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