Merge "Fixed Autofill NPE that crashed some apps." into oc-dev

This commit is contained in:
Felipe Leme
2017-04-06 19:36:16 +00:00
committed by Android (Google) Code Review

View File

@@ -7431,6 +7431,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
AccessibilityNodeInfo info = createAccessibilityNodeInfo();
structure.setChildCount(1);
ViewStructure root = structure.newChild(0);
if (forAutofill) {
setAutofillId(root);
}
populateVirtualStructure(root, provider, info, forAutofill);
info.recycle();
}