mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Update bad method
This commit is contained in:
+2
-2
@@ -76,11 +76,11 @@ public class AccessibilityDelegateUtil {
|
||||
|
||||
public static AccessibilityRole fromValue(@Nullable String value) {
|
||||
for (AccessibilityRole role : AccessibilityRole.values()) {
|
||||
if (role.getValue() != null && role.getValue().equals(value)) {
|
||||
if (role.name().equalsIgnoreCase(value)) {
|
||||
return role;
|
||||
}
|
||||
}
|
||||
return AccessibilityRole.NONE;
|
||||
throw new IllegalArgumentException("Invalid accessibility role value: " + value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user