Revert "Revert "Fix Immersive confirmation in expanded mode.""

This reverts commit 2abde55e26cac73f0d403d590a245a782399edd4.
Revert "Revert "WindowManagerService: fix application transitions in expanded mode.""

This reverts commit a644224d79a8698b1cf0f03849c4f8dd9022498b.
Revert "Revert "PhoneWindowManager: fix navbar behavior in expanded mode after 4.4.2 merge.""

This reverts commit 86707c66cac75e7bb4a6b0156b2b9116bbbd18a4.