Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3598f2c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "AppWindowToken: Handling IndexOutOfBoundsException"

parents 42e10be2 b4bdb99e
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -254,10 +254,14 @@ class AppWindowToken extends WindowToken {

    void removeAllWindows() {
        for (int winNdx = allAppWindows.size() - 1; winNdx >= 0; --winNdx) {
            try {
                WindowState win = allAppWindows.get(winNdx);
                if (WindowManagerService.DEBUG_WINDOW_MOVEMENT) Slog.w(WindowManagerService.TAG,
                        "removeAllWindows: removing win=" + win);
                win.mService.removeWindowLocked(win.mSession, win);
            } catch (IndexOutOfBoundsException e) {
                Slog.e(WindowManagerService.TAG, "Error while removing window : " + e);
            }
        }
    }