Make a11y settings display consistent am: 99a66b5416
am: 17fb0f6cf5
am: 02b9cb27bb
Change-Id: I9a6c530e5fbb7bf2023b0f84186b568c47e694f3
This commit is contained in:
@@ -203,10 +203,8 @@ public class ToggleAccessibilityServicePreferenceFragment
|
||||
}
|
||||
|
||||
private void updateSwitchBarToggleSwitch() {
|
||||
final String settingValue = Settings.Secure.getString(getContentResolver(),
|
||||
Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES);
|
||||
final boolean checked = settingValue != null
|
||||
&& settingValue.contains(mComponentName.flattenToString());
|
||||
final boolean checked = AccessibilityUtils.getEnabledServicesFromSettings(getActivity())
|
||||
.contains(mComponentName);
|
||||
mSwitchBar.setCheckedInternal(checked);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user