Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e31c23a authored by Daniel Norman's avatar Daniel Norman
Browse files

Roll out bugfix enable_hardware_shortcut_disables_warning

This has been in trunkfood for 4 months.

(This flagged fix was originally tagged as a feature flag, but
under current org guidelines this should have been treated as
a minor bugfix flag.)

Bug: 287065325
Change-Id: Idfa29ae0d1e3c2b3b98a9357dd06b6746e499988
Flag: com.android.server.accessibility.enable_hardware_shortcut_disables_warning
parent 1fcf3049
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -4503,13 +4503,11 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
        }
        if (shortcutType == HARDWARE) {
            skipVolumeShortcutDialogTimeoutRestriction(userId);
            if (com.android.server.accessibility.Flags.enableHardwareShortcutDisablesWarning()) {
            persistIntToSetting(
                    userId,
                    Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN,
                    AccessibilityShortcutController.DialogStatus.SHOWN
            );
            }
        } else if (shortcutType == SOFTWARE) {
            // Update the A11y FAB size to large when the Magnification shortcut is
            // enabled and the user hasn't changed the floating button size
+0 −1
Original line number Diff line number Diff line
@@ -1136,7 +1136,6 @@ public class AccessibilityManagerServiceTest {
    }

    @Test
    @EnableFlags(Flags.FLAG_ENABLE_HARDWARE_SHORTCUT_DISABLES_WARNING)
    public void enableHardwareShortcutsForTargets_shortcutDialogSetting_isShown() {
        // TODO(b/111889696): Remove the user 0 assumption once we support multi-user
        assumeTrue("The test is setup to run as a user 0",