Fix shortcut rotate trigger swipe notification
onActivatedActionChanged() was invoke When setting ONE_HANDED_MODE_ACTIVATED update, the root cause is onRotateDisplay() in OHMDisplayAreaOrganizer and go to finishOffset() and callback onStopFinished(), then OHMController#onStopFinished() invoke reset settings through notifyShortcutState(STATE_NONE) which reset settings key ONE_HANDED_MODE_ACTIVATED to 0. At the meanwhile reset key cause observer invoke onActivatedActionChanged() to expand notification again. The simple solution is directly return if current setting is "Swipe notification" in OHMDisplayAreaOrganzier onRotateDisplay() to avoid finishOffset() called. Test: manual tap OHM shortcut to expand notification, rotate to check if notification expanded Test: atest WMShellUnitTests Bug: 191337996 Change-Id: I697dbabce070249f0a5e513abd514f9e02b8aa16
Loading
Please register or sign in to comment