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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user