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);
|
WindowManagerPolicy.TRANSIT_EXIT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
win.mAnimatingExit = true;
|
|
||||||
changed = true;
|
changed = true;
|
||||||
win.setDisplayLayoutNeeded();
|
win.setDisplayLayoutNeeded();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,6 +100,8 @@ class WindowSurfaceController {
|
|||||||
void hideInTransaction(String reason) {
|
void hideInTransaction(String reason) {
|
||||||
if (SHOW_TRANSACTIONS) logSurface("HIDE ( " + reason + " )", null);
|
if (SHOW_TRANSACTIONS) logSurface("HIDE ( " + reason + " )", null);
|
||||||
mHiddenForOtherReasons = true;
|
mHiddenForOtherReasons = true;
|
||||||
|
|
||||||
|
mAnimator.destroyPreservedSurfaceLocked();
|
||||||
updateVisibility();
|
updateVisibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,6 +182,7 @@ class WindowSurfaceController {
|
|||||||
updateVisibility();
|
updateVisibility();
|
||||||
} else {
|
} else {
|
||||||
mHiddenForCrop = true;
|
mHiddenForCrop = true;
|
||||||
|
mAnimator.destroyPreservedSurfaceLocked();
|
||||||
updateVisibility();
|
updateVisibility();
|
||||||
}
|
}
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user