Merge "Defer removal of activity until animation complete." into klp-modular-dev

This commit is contained in:
Craig Mautner
2014-03-26 00:21:56 +00:00
committed by Android (Google) Code Review

View File

@ -9418,7 +9418,7 @@ public class WindowManagerService extends IWindowManager.Stub
mStackIdToStack.valueAt(stackNdx).mExitingAppTokens;
for (i = exitingAppTokens.size() - 1; i >= 0; i--) {
AppWindowToken token = exitingAppTokens.get(i);
if (!token.hasVisible && !mClosingApps.contains(token)) {
if (!token.hasVisible && !mClosingApps.contains(token) && !token.mDeferRemoval) {
// Make sure there is no animation running on this token,
// so any windows associated with it will be removed as
// soon as their animations are complete