Merge "Fix dead surface/window left on screen" into nyc-dev
am: 289395b1fe
* commit '289395b1feca65fc758384bb2d5c12f1c78500c1':
Fix dead surface/window left on screen
Change-Id: Idd818246a5ada66abc24806529848d8d25a2e383
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