From 6039f8cea5b38fd91b84e3df1a2c3a5363601a97 Mon Sep 17 00:00:00 2001 From: lisonge Date: Sun, 31 Dec 2023 01:31:26 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=99=8D=E4=BD=8E=E8=BD=AE=E8=AF=A2=20?= =?UTF-8?q?shizuku=20=E9=A2=91=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt b/app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt index 908ce75..676efc0 100644 --- a/app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt +++ b/app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt @@ -79,7 +79,7 @@ class GkdAbService : CompositionAbService({ onAccessibilityEvent { // 借助无障碍轮询校验 shizuku 权限 if (storeFlow.value.enableShizuku && it.eventType == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) {// 筛选降低判断频率 val t = System.currentTimeMillis() - if (t - lastCheckShizukuTime > 5000L) { + if (t - lastCheckShizukuTime > 30_000L) { lastCheckShizukuTime = t scope.launchTry(Dispatchers.IO) { shizukuGrantFlow.value = if (shizukuAliveFlow.value) {