diff options
author | Chris Craik <ccraik@google.com> | 2014-07-17 11:15:49 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-07-17 11:15:49 -0700 |
commit | 22c7f58b65b057495e640ed6a975f481463b7e06 (patch) | |
tree | 8e41e1a1836ffab86b5514bd37b46391e4831b7d /src/com/android/settings/accessibility | |
parent | 7babd05509ea33f507f3525fbe065093d5877779 (diff) | |
download | packages_apps_Settings-22c7f58b65b057495e640ed6a975f481463b7e06.tar.gz packages_apps_Settings-22c7f58b65b057495e640ed6a975f481463b7e06.tar.bz2 packages_apps_Settings-22c7f58b65b057495e640ed6a975f481463b7e06.zip |
Access high contrast setting directly
Change-Id: I6dd6359a9a0ed26955bbe7a9f24e460f85a17383
Diffstat (limited to 'src/com/android/settings/accessibility')
-rw-r--r-- | src/com/android/settings/accessibility/AccessibilitySettings.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/accessibility/AccessibilitySettings.java b/src/com/android/settings/accessibility/AccessibilitySettings.java index f035d7b4c..d3f0466c6 100644 --- a/src/com/android/settings/accessibility/AccessibilitySettings.java +++ b/src/com/android/settings/accessibility/AccessibilitySettings.java @@ -510,7 +510,8 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements mToggleLargeTextPreference.setChecked(mCurConfig.fontScale == LARGE_FONT_SCALE); mToggleHighTextContrastPreference.setChecked( - AccessibilityManager.getInstance(getActivity()).isHighTextContrastEnabled()); + Settings.Secure.getInt(getContentResolver(), + Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, 0) == 1); // Power button ends calls. if (KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_POWER) |