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

Commit a7ffaee2 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "AccessibilityNodeInfo reports no children for the topmost view in the tree."

parents 3c469975 93b2182a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2162,7 +2162,9 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
    @Override
    public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
        super.onInitializeAccessibilityNodeInfo(info);
        if ((mPrivateFlags & IS_ROOT_NAMESPACE) != 0) {
        // If the view is not the topmost one in the view hierarchy and it is
        // marked as the logical root of a view hierarchy, do not go any deeper.
        if ((!(getParent() instanceof ViewRootImpl)) && (mPrivateFlags & IS_ROOT_NAMESPACE) != 0) {
            return;
        }
        for (int i = 0, count = mChildrenCount; i < count; i++) {