summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Roy Chou <juchengchou@google.com> 2023-09-07 15:00:58 +0000
committer Roy Chou <juchengchou@google.com> 2023-09-07 15:00:58 +0000
commitcd5748602509f2eab69b8d90790395741608a9bf (patch)
tree2b68dfd41901591051088614505fec6ba342bcba /libs/androidfw/FileStream.cpp
parent68ef56859f8d8c83ec18f323bb2ff5e003892973 (diff)
fix(magnification): swipe up gesture in app does not work sometimes when fullscreen magnification activated
Previously, we added the MagnificationInfoChangedCallback to the gesture handler. When the gesture handler is notified the magnification deactivation, we can reset the gesture handler states. However, when fullscreen magnification activated and always-on-magnification is not enabled, the swipe up gesture would trigger the context changed event, then the magnification would be deactivated, and the gesture handler states reset. It would cause the gesture handler does not delegate the complete gesture events, then the system would not detect the complete swipe up gesture and perform the correct ui logic. Therefore, when gesture handler is notified that the magnification is deactivated, instead reseting all states, we only cancel the shortcut triggered flag. By doing this, we can ensure that future taps will not activate the magnifier unexpectedly, and the gesture handler will process the remaining events properly. Bug: 298023290 Test: manually Change-Id: I8643ff159216e7511d42e1c63e7300bd1133b231
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions