Add window leak check and possible recovery.
Search output for "!!! LEAK !!!" For bug 8322020. Change-Id: I6db572a1c7fe0e6b386ccb0dba08bc376659a75a
This commit is contained in:
@@ -997,6 +997,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