WindowManagerService: fix application transitions in expanded mode.

Change-Id: If7d3fc3ab566dedc3a5b38cd0a6dc3185f494e20
Merge "WindowManagerService: fix application transitions in expanded mode." into cm-11.0