Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Fix AccessibilityRules reporting incorrectly when services were enabl…
Browse files Browse the repository at this point in the history
…ed/not enabled

- was only retrieving spoken feedback services, so services like switch access were ignored
  • Loading branch information
ataulm committed Jan 27, 2018
1 parent 6d81573 commit 1a57631
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private void requestState(String value) {

@Override
public boolean reportsEnabled() {
List<AccessibilityServiceInfo> enabledAccessibilityServiceList = a11yManager.getEnabledAccessibilityServiceList(AccessibilityServiceInfo.FEEDBACK_SPOKEN);
List<AccessibilityServiceInfo> enabledAccessibilityServiceList = a11yManager.getEnabledAccessibilityServiceList(AccessibilityServiceInfo.FEEDBACK_ALL_MASK);
for (AccessibilityServiceInfo accessibilityServiceInfo : enabledAccessibilityServiceList) {
if (accessibilityServiceInfo.getId().equals(service.qualifiedName())) {
return true;
Expand Down

0 comments on commit 1a57631

Please sign in to comment.