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

Skip to content
Commit 67b7cd18 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 7b4ab317
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