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

Commit 4dfb7e3d authored by Wale Ogunwale's avatar Wale Ogunwale Committed by android-build-merger
Browse files

Merge "Ignore request to add starting window if already visible" into oc-dev

am: 9daf0e62

Change-Id: Ic610537f8573292e4bead83482b13c545c5b92b8
parents 97c12dea 9daf0e62
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -470,6 +470,13 @@ public class AppWindowContainerController
                return false;
            }

            final WindowState mainWin = mContainer.findMainWindow();
            if (mainWin != null && mainWin.isVisible() && mainWin.isDrawnLw()) {
                // App already has a visible window that is drawn...why would you want a starting
                // window?
                return false;
            }

            final int type = getStartingWindowType(newTask, taskSwitch, processRunning,
                    allowTaskSnapshot);