Merge "WindowState isSyncFinished should also check isVisibleRequested" into sc-v2-dev am: 1d0c96e853

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

Change-Id: I847d2e4d3ad796fd51370dd424a6114de2fa43bc
This commit is contained in:
Wei Sheng Shih
2021-10-19 12:57:52 +00:00
committed by Automerger Merge Worker

View File

@@ -6050,7 +6050,8 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
@Override
boolean isSyncFinished() {
if (mSyncState == SYNC_STATE_WAITING_FOR_DRAW && mViewVisibility == View.GONE) {
if (mSyncState == SYNC_STATE_WAITING_FOR_DRAW && mViewVisibility == View.GONE
&& !isVisibleRequested()) {
// Don't wait for GONE windows. However, we don't alter the state in case the window
// becomes un-gone while the syncset is still active.
return true;