Fixing bug 2064923.
This is a fix to make sure that the accessibility manager does not start any of the accessibility services when it is disabled.
This commit is contained in:
@@ -130,7 +130,11 @@ public class AccessibilitySettings extends PreferenceActivity {
|
||||
|
||||
int count = mAccessibilityServicesCategory.getPreferenceCount();
|
||||
for (int i = 0; i < count; i++) {
|
||||
mAccessibilityServicesCategory.getPreference(i).setEnabled(isEnabled);
|
||||
Preference pref = mAccessibilityServicesCategory.getPreference(i);
|
||||
pref.setEnabled(isEnabled);
|
||||
if (!isEnabled){
|
||||
((CheckBoxPreference) pref).setChecked(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user