diff options
| author | 2024-12-16 16:26:10 +0800 | |
|---|---|---|
| committer | 2024-12-16 19:06:17 -0800 | |
| commit | 2ed3f59ce78ee1ac8fa14a1b543c253246c5f9b6 (patch) | |
| tree | b4b3777faf98a691c927c12d24b804d0b25e5e82 /libs/androidfw/misc.cpp | |
| parent | c05c4e0ec183843b430e776def1b1e94b6fd8b73 (diff) | |
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
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions