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

Commit eec258bf authored by Sally's avatar Sally
Browse files

Check for null when requesting the virtual focused node

Bug: 285945204
Test: n/a
Change-Id: Icc5edc513d3649c2372a4d691f04dbdb7dffaa23
parent 89cc5e9d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4117,6 +4117,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;
        }