* commit 'db6c556daea9fcf8aaeea8cacb5d8c29d0b406e7': Add window leak check and possible recovery.
This commit is contained in:
@ -1003,6 +1003,9 @@ final class WindowState implements WindowManagerPolicy.WindowState {
|
||||
Slog.i(TAG, "WIN DEATH: " + win);
|
||||
if (win != null) {
|
||||
mService.removeWindowLocked(mSession, win);
|
||||
} else if (WindowState.this.mHasSurface) {
|
||||
Slog.e(TAG, "!!! LEAK !!! Window removed but surface still valid.");
|
||||
mService.removeWindowLocked(mSession, WindowState.this);
|
||||
}
|
||||
}
|
||||
} catch (IllegalArgumentException ex) {
|
||||
|
Reference in New Issue
Block a user