Defer rotation update during recent transition
This migrates the changes [1] and [2] to shell transition.
[1] I3f2a46ddfe5e76ad3200ea27ad272ae36b6bcc8d
[2] I5e7487b08e139b251d160bd0627326b83351640e
With shell transition+fixed rotation, even if the home is moved to
top for showing recents overview, a rotation change may still happen
if the display is in non-natural rotation (different than NOSENSOR).
So the legacy condition is still needed to defer the rotation change.
Eliminate the post message for updating rotation by setting
the orientation of recents mLastOrientation. So when finishing
the transition, the change can be seen:
Legacy: handleAppTransitionReady -> FINISH_LAYOUT_REDO_CONFIG
Shell: onAppTransitionFinishedLocked
-> continueUpdateOrientationForDiffOrienLaunchingApp
Bug: 216169338
Test: atest TransitionTests#testDeferRotationForTransientLaunch
RecentsAnimationControllerTest#testCheckRotationAfterCleanup
Change-Id: I2580c6d7b46a641abd4d8f963e915122af215ac7
5 files changed