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

Commit ccca9fe2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't keep dead window with borrowed app token visible" into nyc-dev

parents 12b1776d 51d1d916
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1781,6 +1781,12 @@ final class WindowState implements WindowManagerPolicy.WindowState {
            return false;
        }

        if (mAttrs.token != mClient.asBinder()) {
            // The window was add by a client using another client's app token. We don't want to
            // keep the dead window around for this case since this is meant for 'real' apps.
            return false;
        }

        if (mAttrs.type == TYPE_APPLICATION_STARTING) {
            // We don't keep starting windows since they were added by the window manager before
            // the app even launched.