Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7c6f6b80 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 91e92eb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment