Don't add windows from exiting app tokens twice.

If an apptoken's removal has been delayed then it will be in both
mExitingAppTokens and the stack's tasks. When rebuilding the windows
the windows from that apptoken will get added twice. This change
skips adding those windows from apptokens that have already been
added from mExitingAppTokens.

Change-Id: I55f94b7dbef36aeacb390b91fbe82426eaac5458
This commit is contained in:
Craig Mautner
2014-02-12 12:37:17 -08:00
parent 879592d89a
commit ac90c19cab

View File

@@ -8067,6 +8067,9 @@ public class WindowManagerService extends IWindowManager.Stub
final int numTokens = tokens.size();
for (int tokenNdx = 0; tokenNdx < numTokens; ++tokenNdx) {
final AppWindowToken wtoken = tokens.get(tokenNdx);
if (wtoken.mDeferRemoval) {
continue;
}
i = reAddAppWindowsLocked(displayContent, i, wtoken);
}
}