Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9416c4c8 authored by Sally's avatar Sally
Browse files

Make a view important if there is a delegate

This is what the documentation for isImportantForAccessibility says,
but we only check if there is
a node provider. Expand this check to all delegates (which encompasses
the node provider case)

Bug: 275751628
Test: atest AccessibilityEndToEndTest

Change-Id: Ia53f52970a090364a03b8bb8415a0b92b76dfc33
parent 5ac54421
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14763,7 +14763,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
        return mode == IMPORTANT_FOR_ACCESSIBILITY_YES || isActionableForAccessibility()
                || hasListenersForAccessibility() || getAccessibilityNodeProvider() != null
                || hasListenersForAccessibility() || mAccessibilityDelegate != null
                || getAccessibilityLiveRegion() != ACCESSIBILITY_LIVE_REGION_NONE
                || isAccessibilityPane();
    }