Access high contrast setting directly

Change-Id: I6dd6359a9a0ed26955bbe7a9f24e460f85a17383
This commit is contained in:
Chris Craik
2014-07-17 11:15:49 -07:00
parent 7babd05509
commit 22c7f58b65

View File

@@ -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)