Defer transition ready when resizing starting window.

Reset the StartingData.mIsDisplayed if the starting window is going
to resizing, so the transition won't happens with no opening windows
drawn.

Bug: 265016201
Test: atest QuickSwitchFromLauncherTest
Change-Id: I1b77c8238ec5a2b9a04c2cf779b49790f5203ce5
This commit is contained in:
wilsonshih
2023-02-01 07:12:33 +00:00
parent f00201114c
commit d368f2264c

View File

@@ -1531,6 +1531,10 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
winAnimator.mDrawState = DRAW_PENDING;
if (mActivityRecord != null) {
mActivityRecord.clearAllDrawn();
if (mAttrs.type == TYPE_APPLICATION_STARTING
&& mActivityRecord.mStartingData != null) {
mActivityRecord.mStartingData.mIsDisplayed = false;
}
}
}
if (!mWmService.mResizingWindows.contains(this)) {