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

Commit 6ece39d1 authored by Sally Yuen's avatar Sally Yuen Committed by Android (Google) Code Review
Browse files

Merge "Check for null when requesting the virtual focused node"

parents 82b0753e eec258bf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4134,6 +4134,9 @@ public final class ViewRootImpl implements ViewParent,
        // implement AccessibilityNodeProvider#findFocus
        AccessibilityNodeInfo current = provider.createAccessibilityNodeInfo(
                AccessibilityNodeProvider.HOST_VIEW_ID);
        if (current == null) {
            return null;
        }
        if (current.isFocused()) {
            return current;
        }