Loading services/core/java/com/android/server/wm/AppWindowToken.java +6 −1 Original line number Diff line number Diff line Loading @@ -302,9 +302,14 @@ class AppWindowToken extends WindowToken { void setWindowsExiting(boolean exiting) { for (int i = allAppWindows.size() - 1; i >= 0; i--) { WindowState win = allAppWindows.get(i); // If the app already requested to remove its window, we don't modify // its exiting state. Otherwise the stale window won't get removed on // exit and could cause focus to be given to the wrong window. if (!(win.mRemoveOnExit && win.mExiting)) { win.mExiting = exiting; } } } /** * Checks whether we should save surfaces for this app. Loading Loading
services/core/java/com/android/server/wm/AppWindowToken.java +6 −1 Original line number Diff line number Diff line Loading @@ -302,9 +302,14 @@ class AppWindowToken extends WindowToken { void setWindowsExiting(boolean exiting) { for (int i = allAppWindows.size() - 1; i >= 0; i--) { WindowState win = allAppWindows.get(i); // If the app already requested to remove its window, we don't modify // its exiting state. Otherwise the stale window won't get removed on // exit and could cause focus to be given to the wrong window. if (!(win.mRemoveOnExit && win.mExiting)) { win.mExiting = exiting; } } } /** * Checks whether we should save surfaces for this app. Loading