mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
fix: 调整子节点数量限制
This commit is contained in:
parent
bb8fbacec3
commit
8f869c6bb6
|
@ -104,7 +104,8 @@ private fun AccessibilityNodeInfo.getTempRect(): Rect {
|
|||
|
||||
|
||||
// https://github.com/gkd-kit/gkd/issues/115
|
||||
private const val MAX_CHILD_SIZE = 256
|
||||
// 限制节点遍历的数量避免内存溢出
|
||||
private const val MAX_CHILD_SIZE = 512
|
||||
private const val MAX_DESCENDANTS_SIZE = 4096
|
||||
|
||||
val getChildren: (AccessibilityNodeInfo) -> Sequence<AccessibilityNodeInfo> = { node ->
|
||||
|
|
Loading…
Reference in New Issue
Block a user