Revert "Update bad method"

This reverts commit 1592a8d424.
This commit is contained in:
Lorenzo Sciandra
2018-10-19 14:22:35 +01:00
parent 8fd5bcc888
commit 5139b0bef7
@@ -76,11 +76,11 @@ public class AccessibilityDelegateUtil {
public static AccessibilityRole fromValue(@Nullable String value) {
for (AccessibilityRole role : AccessibilityRole.values()) {
if (role.name().equalsIgnoreCase(value)) {
if (role.getValue() != null && role.getValue().equals(value)) {
return role;
}
}
throw new IllegalArgumentException("Invalid accessibility role value: " + value);
return AccessibilityRole.NONE;
}
}