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

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

Merge "Don't query a null AccessibiiltyNodeInfo when populating ViewStructure" into sc-dev

parents 717af18b 3b548655
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -10079,12 +10079,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                }
                AccessibilityNodeInfo cinfo = provider.createAccessibilityNodeInfo(
                        AccessibilityNodeInfo.getVirtualDescendantId(info.getChildId(i)));
                if (cinfo != null) {
                    ViewStructure child = structure.newChild(i);
                    populateVirtualStructure(child, provider, cinfo, forAutofill);
                    cinfo.recycle();
                }
            }
        }
    }
    /**
     * Dispatch creation of {@link ViewStructure} down the hierarchy.  The default