Merge "Revert "Prevent dismissing starting window when reopening app"" into qt-dev am: 4cd89f0332

am: 64526bae56

Change-Id: Id4d5285e3bbe10f5ac2eb986105fdd732893751b
This commit is contained in:
Elisa Pascual Trevino
2019-06-12 16:56:58 -07:00
committed by android-build-merger

View File

@@ -540,14 +540,6 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree
// If the app was already visible, don't reset the waitingToShow state.
if (isHidden()) {
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 */);
}
}