-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
基于fragment切换后无法拿到新显示内容 #33
Comments
清除后台目标应用,从 |
试来试去,应该跟 |
哥们,怎么操作的?直接把 fun rootNodesOfAllWindows(): ViewChildList =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
ViewChildList().also { list ->
AutoApi.windows()?.sortedByDescending {
if (it.isActive) Int.MAX_VALUE else it.layer
}?.forEach { win ->
list.add(
win.root?.let { r -> ViewNode(r.also(AccessibilityNodeInfo::refresh)) }
)
} ?: list.add(activeWinNode())
}
} else {
ViewChildList().also { list ->
list.add(activeWinNode())
}
} 改成 fun rootNodesOfAllWindows(): ViewChildList =
ViewChildList().also { list ->
AutoApi.windows()?.sortedByDescending {
if (it.isActive) Int.MAX_VALUE else it.layer
}?.forEach { win ->
list.add(
win.root?.let { r -> ViewNode(r.also(AccessibilityNodeInfo::refresh)) }
)
} ?: list.add(activeWinNode())
} 吗?其他的不用动?还是继续用SF去查找控件吗? |
切换后找不到按钮,明明在。已经使用
android:accessibilityEventTypes="typeAllMask"
The text was updated successfully, but these errors were encountered: