Skip to content

Commit c0291bb

Browse files
committed
AccessibilityNodeInfo makes incorrect check before calling into the system.
AccessibilityNodeInfo#getParent is checking whether the source view accessibility id is specified instead that of the parent. bug:5505799 Change-Id: I436fd2327def2762b4d307819ba0c23baa9a4e03
1 parent 1bfe6e9 commit c0291bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/view/accessibility/AccessibilityNodeInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public List<AccessibilityNodeInfo> findAccessibilityNodeInfosByText(String text)
293293
*/
294294
public AccessibilityNodeInfo getParent() {
295295
enforceSealed();
296-
if (!canPerformRequestOverConnection(mAccessibilityViewId)) {
296+
if (!canPerformRequestOverConnection(mParentAccessibilityViewId)) {
297297
return null;
298298
}
299299
AccessibilityInteractionClient client = AccessibilityInteractionClient.getInstance();

0 commit comments

Comments
 (0)