diff options
| author | 2023-09-15 12:56:12 +0000 | |
|---|---|---|
| committer | 2023-09-19 07:45:23 +0000 | |
| commit | 67b7cd184172e6b0d887be387d38917919425a2a (patch) | |
| tree | 7bbe311ff05fe83fdd850e7320d7d92de2dffb1c /libs/androidfw/AssetsProvider.cpp | |
| parent | 7b4ab3173415d467b86a77607e87274577966260 (diff) | |
Notify recents animation state for CommandQueue
This restores the callback that was missed for shell transition.
In legacy transition it was called from
core: wm.RecentsAnimationController -> StatusBarManagerService
-> binder call to sysui's CommandQueue.
Now with shell transition, RecentsTransitionHandler and CommandQueue
are in the same process by default, so just set the callback directly.
Then it can reach RotationButtonController#setRecentsAnimationRunning
to affect shouldOverrideUserLockPrefs that decides whether the locked
rotation should be reset when receiving natural rotation.
Fix: 300216165
Test: atest WMShellTest#initRecentTasks_registersListener
Test: Disable auto-rotation. Launch calculator in portrait.
Rotate device to landscape and press rotation button.
Use gesture navigation to switch to a portrait-only app.
(RotationButtonController should reset locked rotation to 0)
Switch to calculator, it should keep in portrait.
Change-Id: Id841d70bce0f1c8a41a17b2d7ba9163be77aad59
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions