Merge "Make a11y settings display consistent" into nyc-mr1-dev
This commit is contained in:
@@ -203,10 +203,8 @@ public class ToggleAccessibilityServicePreferenceFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateSwitchBarToggleSwitch() {
|
private void updateSwitchBarToggleSwitch() {
|
||||||
final String settingValue = Settings.Secure.getString(getContentResolver(),
|
final boolean checked = AccessibilityUtils.getEnabledServicesFromSettings(getActivity())
|
||||||
Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES);
|
.contains(mComponentName);
|
||||||
final boolean checked = settingValue != null
|
|
||||||
&& settingValue.contains(mComponentName.flattenToString());
|
|
||||||
mSwitchBar.setCheckedInternal(checked);
|
mSwitchBar.setCheckedInternal(checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user