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: 276356396
Test: atest QuickSwitchFromLauncherTest
Test: manual do quick switch 50+ without seeing flikcer.
Change-Id: I1b77c8238ec5a2b9a04c2cf779b49790f5203ce5
(cherry picked from commit d368f2264c)
This commit is contained in:
committed by
Wei Sheng Shih
parent
14a06a9cd5
commit
7d7e6f3b91
@@ -1543,6 +1543,10 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
|
|||||||
winAnimator.mDrawState = DRAW_PENDING;
|
winAnimator.mDrawState = DRAW_PENDING;
|
||||||
if (mActivityRecord != null) {
|
if (mActivityRecord != null) {
|
||||||
mActivityRecord.clearAllDrawn();
|
mActivityRecord.clearAllDrawn();
|
||||||
|
if (mAttrs.type == TYPE_APPLICATION_STARTING
|
||||||
|
&& mActivityRecord.mStartingData != null) {
|
||||||
|
mActivityRecord.mStartingData.mIsDisplayed = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!mWmService.mResizingWindows.contains(this)) {
|
if (!mWmService.mResizingWindows.contains(this)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user