OSDN Git Service

Fix default for a11y shortcut setting
authorPhil Weaver <pweaver@google.com>
Wed, 19 Apr 2017 18:09:23 +0000 (11:09 -0700)
committerPhil Weaver <pweaver@google.com>
Wed, 19 Apr 2017 18:09:23 +0000 (11:09 -0700)
Settings thought the default for "Allow from lock screen" was
on. It's really off.

Bug: 37158451
Test: Manually confirmed that a fresh device now shows off.
Change-Id: I38dc4f6d2bfec5e0c8562c0d2c6e034db461aa98

src/com/android/settings/accessibility/AccessibilityShortcutPreferenceFragment.java

index 24320b3..21ead46 100644 (file)
@@ -95,7 +95,7 @@ public class AccessibilityShortcutPreferenceFragment extends ToggleFeaturePrefer
         CharSequence serviceName = getServiceName(getContext());
         mServicePreference.setSummary(serviceName);
         mOnLockScreenSwitchPreference.setChecked(Settings.Secure.getInt(
-                cr, Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, 1) == 1);
+                cr, Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, 0) == 1);
         if (TextUtils.equals(serviceName, getString(R.string.accessibility_no_service_selected))) {
             // If there's no service configured, enabling the shortcut will have no effect
             // It should already be disabled, but force the switch to off just in case