am cc947fdc: Merge "Add window leak check and possible recovery." into jb-mr2-dev
* commit 'cc947fdc2decb83a70484bd0f831c58cc0346657': Add window leak check and possible recovery.
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