From 22c7f58b65b057495e640ed6a975f481463b7e06 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Thu, 17 Jul 2014 11:15:49 -0700 Subject: Access high contrast setting directly Change-Id: I6dd6359a9a0ed26955bbe7a9f24e460f85a17383 --- src/com/android/settings/accessibility/AccessibilitySettings.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/settings/accessibility') 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) -- cgit v1.2.3