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
Loading
Please register or sign in to comment