Merge "Fix staring window being hide after AR#commitVisibility" into sc-v2-dev

This commit is contained in:
Wei Sheng Shih
2021-10-06 01:11:50 +00:00
committed by Android (Google) Code Review

View File

@@ -4940,7 +4940,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
} else { } else {
// If we are being set visible, and the starting window is not yet displayed, // If we are being set visible, and the starting window is not yet displayed,
// then make sure it doesn't get displayed. // then make sure it doesn't get displayed.
if (mStartingWindow != null && !mStartingWindow.isDrawn()) { if (mStartingWindow != null && !mStartingWindow.isDrawn()
&& (firstWindowDrawn || allDrawn)) {
mStartingWindow.clearPolicyVisibilityFlag(LEGACY_POLICY_VISIBILITY); mStartingWindow.clearPolicyVisibilityFlag(LEGACY_POLICY_VISIBILITY);
mStartingWindow.mLegacyPolicyVisibilityAfterAnim = false; mStartingWindow.mLegacyPolicyVisibilityAfterAnim = false;
} }