From 305c65b776ca780fddfc97649d5a39d5b6416bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Tue, 5 Nov 2024 17:13:01 +0800 Subject: [PATCH] fix: anyMatches not working (#765) --- app/src/main/kotlin/li/songe/gkd/service/A11yContext.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/li/songe/gkd/service/A11yContext.kt b/app/src/main/kotlin/li/songe/gkd/service/A11yContext.kt index bb06774..55fbd16 100644 --- a/app/src/main/kotlin/li/songe/gkd/service/A11yContext.kt +++ b/app/src/main/kotlin/li/songe/gkd/service/A11yContext.kt @@ -541,7 +541,8 @@ class A11yContext( queryNode, selector, rule.matchOption, - ) ?: break + ) + if (resultNode != null) break } if (resultNode == null) return null }