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

Commit 6a5b828f authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Merge "Prevent dismissing starting window when reopening app" into qt-dev am: 94f7f39a

am: 95376bb8

Change-Id: I54ce7800fa6c7ff9da7b184fa3a06235fb88a872
parents d827c243 95376bb8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -540,6 +540,14 @@ 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 */);
                }
            }