Merge "Don\'t keep dead window with borrowed app token visible" into nyc-dev
am: ccca9fe2fe
* commit 'ccca9fe2fe589c8ccde65aa8f86bdeb24561fd32':
Don't keep dead window with borrowed app token visible
Change-Id: I9fe63d76ad999873b8d7453c39945659dfae0061
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user