Check for minimize & exit immersive logic on #openInstance

When a task is re-opened through the instance manager, check whether the
system needs to minimize or move a task out of immersive mode in the
same transition.

Flag: EXEMPT bugfix
Fix: 373628617
Fix: 369025348
Test: open a new window through the Manage Windows menu, check the
oldest task is minimized if at the limit or the immersive task exists if
needed.

Change-Id: Idd76dcfd2aca149757f94efe36d71c8cee2ee52e
2 files changed