Don't treat dummy animation as exit animation.

This fixes a problem where recents would never be removed, because they
would run a dummy animation.

Bug: 25472312
Change-Id: I5767dc700966a49513e6338f4728c2ff275628ad
This commit is contained in:
Filip Gruszczynski
2015-11-09 18:17:07 -08:00
parent 331d5e078c
commit 291fdb0efc

View File

@@ -2242,7 +2242,8 @@ public class WindowManagerService extends IWindowManager.Stub
mAccessibilityController.onWindowTransitionLocked(win, transit);
}
}
final boolean isAnimating = win.mWinAnimator.isAnimating();
final boolean isAnimating = win.mWinAnimator.isAnimating()
&& !win.mWinAnimator.isDummyAnimation();
// The starting window is the last window in this app token and it isn't animating.
// Allow it to be removed now as there is no additional window or animation that will
// trigger its removal.