Merge "Add window leak check and possible recovery." into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cc947fdc2d
@ -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