fix: 子孙节点遍历顺序错误

This commit is contained in:
lisonge 2023-12-27 12:38:11 +08:00
parent 6116dd981b
commit 032ce0fcc6

View File

@ -170,6 +170,7 @@ val abTransform = Transform(
sequence {
val stack = getChildren(node).toMutableList()
if (stack.isEmpty()) return@sequence
stack.reverse()
val tempNodes = mutableListOf<AccessibilityNodeInfo>()
do {
val top = stack.removeLast()