am dd82be9c
: Merge "Access high contrast setting directly" into lmp-dev
* commit 'dd82be9c705196d93986f356f464e6ebfed01002': Access high contrast setting directly
This commit is contained in:
@@ -510,7 +510,8 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements
|
|||||||
mToggleLargeTextPreference.setChecked(mCurConfig.fontScale == LARGE_FONT_SCALE);
|
mToggleLargeTextPreference.setChecked(mCurConfig.fontScale == LARGE_FONT_SCALE);
|
||||||
|
|
||||||
mToggleHighTextContrastPreference.setChecked(
|
mToggleHighTextContrastPreference.setChecked(
|
||||||
AccessibilityManager.getInstance(getActivity()).isHighTextContrastEnabled());
|
Settings.Secure.getInt(getContentResolver(),
|
||||||
|
Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, 0) == 1);
|
||||||
|
|
||||||
// Power button ends calls.
|
// Power button ends calls.
|
||||||
if (KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_POWER)
|
if (KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_POWER)
|
||||||
|
Reference in New Issue
Block a user