summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Roy Chou <juchengchou@google.com> 2024-04-16 15:55:07 +0000
committer Roy Chou <juchengchou@google.com> 2024-04-17 06:52:35 +0000
commit2f53ef0530adcddf1201fd3e2e0a2db84d52d7ae (patch)
treea46b63ee5d9d0528717515b271b36a34a1910635 /libs/androidfw/StringPool.cpp
parentb485ab8a99db45baddd1a9254d71a2e07e1b66f1 (diff)
feat(fullscreen magnification): magnification should not work when no sysui connection
For sysui fullscreen magnification border implementation, if the connection is not established, the magnification should not work. So we won't have a magnified but no border situation. To achieve this, we add flag and connection check in FullScreenMagnificationController#setScaleAndCenter. If the flag on and no connection, it will just return without activating/changing the magnification, so we can block magnification control from both AccessibilityService.setMagnificationConfig and AccessibilityShortcut. Besides, when disconnected the fullscreen magnification should deactivate for the consistency. So in AccessibilityManagerService if setMagnificationConnection with null object, it will reset the fullscreen magnification. Bug: 330420781 Flag: ACONFIG always_draw_magnification_fullscreen_border DEVELOPMENT Test: manually flip the flag atest AccessibilityManagerServiceTest atest FullScreenMagnificationControllerTest Change-Id: Iaf3daf8819182678fe85a78ccb5718b2ecd4889e
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions