mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
+2
-1
@@ -74,7 +74,8 @@ public class AccessibilityDelegateUtil {
|
||||
// if a view already has an accessibility delegate, replacing it could cause problems,
|
||||
// so leave it alone.
|
||||
if (!ViewCompat.hasAccessibilityDelegate(view) &&
|
||||
(accessibilityHint != null || accessibilityRole != null)) {
|
||||
accessibilityHint != null &&
|
||||
accessibilityRole != null) {
|
||||
ViewCompat.setAccessibilityDelegate(
|
||||
view,
|
||||
new AccessibilityDelegateCompat() {
|
||||
|
||||
Reference in New Issue
Block a user