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
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);