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

This commit is contained in:
TreeHugger Robot
2017-04-21 16:16:43 +00:00
committed by Android (Google) Code Review

View File

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