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

Skip to content
Commit 2ed3f59c authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Update display orientation if rotated app is not in transition

It may happen when a translucent activity no longer affects display
orientation, e.g. enter pip, and the next fullscreen opaque activity
in the same task also declares fixed orientation.

Because the next activity is already visible, there won't be a
transition includes it, i.e. DC.FixedRotationTransitionListener#
onAppTransitionFinishedLocked won't be called to update orientation.
So handle the case when the previous transition is done, then the
display can follow the orientation request of the current top activity.

Fix: 384402546
Flag: EXEMPT bugfix
Test: DisplayContentTests#testRespectNonTopVisibleFixedOrientation
Change-Id: I4fce2f84254875d0b52252d428000d39f994f14b
parent c05c4e0e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment