Merge "Fix dead surface/window left on screen" into nyc-dev
This commit is contained in:
@@ -4258,7 +4258,6 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
WindowManagerPolicy.TRANSIT_EXIT);
|
||||
}
|
||||
}
|
||||
win.mAnimatingExit = true;
|
||||
changed = true;
|
||||
win.setDisplayLayoutNeeded();
|
||||
}
|
||||
|
||||
@@ -100,6 +100,8 @@ class WindowSurfaceController {
|
||||
void hideInTransaction(String reason) {
|
||||
if (SHOW_TRANSACTIONS) logSurface("HIDE ( " + reason + " )", null);
|
||||
mHiddenForOtherReasons = true;
|
||||
|
||||
mAnimator.destroyPreservedSurfaceLocked();
|
||||
updateVisibility();
|
||||
}
|
||||
|
||||
@@ -180,6 +182,7 @@ class WindowSurfaceController {
|
||||
updateVisibility();
|
||||
} else {
|
||||
mHiddenForCrop = true;
|
||||
mAnimator.destroyPreservedSurfaceLocked();
|
||||
updateVisibility();
|
||||
}
|
||||
} catch (RuntimeException e) {
|
||||
|
||||
Reference in New Issue
Block a user