From 45a9088ce3b9b5f85803ee13658e12e300336f65 Mon Sep 17 00:00:00 2001 From: GuoXiCheng <1377994267@qq.com> Date: Sat, 30 Sep 2023 09:29:08 +0800 Subject: [PATCH] add app skip --- .../main/java/com/android/skip/service/MyAccessibilityService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/android/skip/service/MyAccessibilityService.kt b/app/src/main/java/com/android/skip/service/MyAccessibilityService.kt index 4a307519..0dad1e64 100644 --- a/app/src/main/java/com/android/skip/service/MyAccessibilityService.kt +++ b/app/src/main/java/com/android/skip/service/MyAccessibilityService.kt @@ -40,6 +40,7 @@ class MyAccessibilityService : AccessibilityService() { fun handleRootNodeByPackageName (): MutableList { return when (getCurrentRootNode().packageName.toString()) { "com.qiyi.video.lite", "com.qiyi.video" -> getCurrentRootNode().findAccessibilityNodeInfosByText("关闭") + "com.MobileTicket" -> getCurrentRootNode().findAccessibilityNodeInfosByViewId("com.MobileTicket:id/tv_skip") else -> getCurrentRootNode().findAccessibilityNodeInfosByText("跳过") } }