Android A11Y: populate child elements when constructing node info
This commit partly reverts 020a6f0daec2e36866888b23c8b3a65bfb366146. It restores the code that is responsible for filling the children for individual elements. Without this code, we have only top-level element and its children in our accessibility hierarchy. Fixes: QTBUG-100545 Pick-to: 6.3 6.2 5.15 Change-Id: I0604bbf5f1bdb0b3998a25fec7ed0a1fe554da8d Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
c8e03f129e
commit
b99fdae5f5
@ -387,6 +387,10 @@ public class QtAccessibilityDelegate extends View.AccessibilityDelegate
|
||||
node.addAction(AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS);
|
||||
}
|
||||
|
||||
int[] ids = QtNativeAccessibility.childIdListForAccessibleObject(virtualViewId);
|
||||
for (int i = 0; i < ids.length; ++i)
|
||||
node.addChild(m_view, ids[i]);
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user