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

Commit 4ba3e834 authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Ignore request to add starting window if already visible

No need to display a starting winow for an app that already has its
main window visible and drawn.

Test: manual
Change-Id: Ibb6c74d0c5cc91cef335749d7546001fff1f7678
Fixes: 37199644
parent 06a53d47
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);