summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorBill Lin <lbill@google.com>2021-06-18 04:06:00 +0800
committerBill Lin <lbill@google.com>2021-06-18 21:05:44 +0800
commit638db506c86e2655061730ad6cd3423498cc0c87 (patch)
treea93288b77bceb27c2f1e7507689460cae6b8e2a3 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent60ec24eb1e286f324a07b1b5e93045c9b3d31567 (diff)
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions