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

Commit 6e814f9f authored by Elisa Pascual Trevino's avatar Elisa Pascual Trevino
Browse files

Revert "Prevent dismissing starting window when reopening app"

This reverts commit 7c88cf83.
Original bug: b/134561008

Reason for revert: b/135084202

Change-Id: Ib4c17f98d66c9efb10d800d9ba585d14be4ac878
parent 7c88cf83
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -539,14 +539,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 */);
                }
            }