Update rotation with animating recents if the device will sleep

Since live tile, the recents animation doesn't finish until back to
the original activity or switch to other activity. If AOD shows when
recents animates a task in different orientation, the rotation change
will be skipped and cause the AOD screen to show with old rotation.

Fix: 199527653
Test: DisplayContentTests#testRecentsNotRotatingWithFixedRotation
Test: On a device with AOD2 enabled, enter recents from a landscape
      app and press power key to enter AOD. The notification shade
      should show in portrait.
Change-Id: I134293cf083377b575f7560a39424a540ec53be9
2 files changed