Merge "Revert "Call preserveSurfaces when detaching children."" into rvc-dev am: 3affbe4d9f am: c3e5f8315a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12180365

Change-Id: I5ab3c5e3395688060c59c4eaff627a1a4c6a1e22
This commit is contained in:
Wale Ogunwale
2020-07-18 00:01:26 +00:00
committed by Automerger Merge Worker

View File

@@ -1592,12 +1592,6 @@ class WindowStateAnimator {
if (mSurfaceController != null) { if (mSurfaceController != null) {
mSurfaceController.detachChildren(); mSurfaceController.detachChildren();
} }
// If the children are detached, it means the app is exiting. We don't want to tear the
// content down too early, otherwise we could end up with a flicker. By preserving the
// current surface, we ensure the content remains on screen until the window is completely
// removed. It also ensures that the old surface is cleaned up when started again since it
// forces mSurfaceController to be set to null.
preserveSurfaceLocked();
} }
void setOffsetPositionForStackResize(boolean offsetPositionForStackResize) { void setOffsetPositionForStackResize(boolean offsetPositionForStackResize) {