* commit '1c48e3029b41efea764520fee32c9085d1162a24': Fix Presentation window is removed on stack change
This commit is contained in:
@@ -4878,8 +4878,19 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
if (NW > 0) {
|
if (NW > 0) {
|
||||||
mWindowsChanged = true;
|
mWindowsChanged = true;
|
||||||
}
|
}
|
||||||
|
int targetDisplayId = -1;
|
||||||
|
Task targetTask = mTaskIdToTask.get(token.appWindowToken.groupId);
|
||||||
|
if (targetTask != null) {
|
||||||
|
DisplayContent targetDisplayContent = targetTask.getDisplayContent();
|
||||||
|
if (targetDisplayContent != null) {
|
||||||
|
targetDisplayId = targetDisplayContent.getDisplayId();
|
||||||
|
}
|
||||||
|
}
|
||||||
for (int i = 0; i < NW; i++) {
|
for (int i = 0; i < NW; i++) {
|
||||||
WindowState win = windows.get(i);
|
WindowState win = windows.get(i);
|
||||||
|
if (targetDisplayId != -1 && win.getDisplayId() != targetDisplayId) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (DEBUG_WINDOW_MOVEMENT) Slog.v(TAG, "Tmp removing app window " + win);
|
if (DEBUG_WINDOW_MOVEMENT) Slog.v(TAG, "Tmp removing app window " + win);
|
||||||
win.getWindowList().remove(win);
|
win.getWindowList().remove(win);
|
||||||
int j = win.mChildWindows.size();
|
int j = win.mChildWindows.size();
|
||||||
|
|||||||
Reference in New Issue
Block a user