Skip to content

Commit 3a136fc

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Views with node providers are important for accessibility in auto mode."
2 parents b49f161 + 34caec9 commit 3a136fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/java/android/view/View.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6387,7 +6387,8 @@ public boolean isImportantForAccessibility() {
63876387
case IMPORTANT_FOR_ACCESSIBILITY_NO:
63886388
return false;
63896389
case IMPORTANT_FOR_ACCESSIBILITY_AUTO:
6390-
return isActionableForAccessibility() || hasListenersForAccessibility();
6390+
return isActionableForAccessibility() || hasListenersForAccessibility()
6391+
|| getAccessibilityNodeProvider() != null;
63916392
default:
63926393
throw new IllegalArgumentException("Unknow important for accessibility mode: "
63936394
+ mode);

0 commit comments

Comments
 (0)