Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d6a680d authored by Elisa Pascual Trevino's avatar Elisa Pascual Trevino Committed by android-build-merger
Browse files

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

am: 5a898bb7

Change-Id: I67640bcda8811e1261e183d587b76ef7350238fd
parents ea85d355 5a898bb7
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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 */);
                }
            }