Merge "Revert "Prevent dismissing starting window when reopening app"" into qt-dev
am: 4cd89f0332
Change-Id: Id807f996d1353340183b73d9e6a5d584cc319028
This commit is contained in:
committed by
android-build-merger
commit
64526bae56
@@ -540,14 +540,6 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree
|
|||||||
// If the app was already visible, don't reset the waitingToShow state.
|
// If the app was already visible, don't reset the waitingToShow state.
|
||||||
if (isHidden()) {
|
if (isHidden()) {
|
||||||
waitingToShow = true;
|
waitingToShow = true;
|
||||||
|
|
||||||
// Let's reset the draw state in order to prevent the starting window to be
|
|
||||||
// immediately dismissed when the app still has the surface.
|
|
||||||
forAllWindows(w -> {
|
|
||||||
if (w.mAttrs.type != TYPE_APPLICATION_STARTING) {
|
|
||||||
w.mWinAnimator.resetDrawState();
|
|
||||||
}
|
|
||||||
}, true /* traverseTopToBottom */);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user