Skip to content

Commit

Permalink
add app skip
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoXiCheng committed Sep 30, 2023
1 parent 36c151e commit 45a9088
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class MyAccessibilityService : AccessibilityService() {
fun handleRootNodeByPackageName (): MutableList<AccessibilityNodeInfo> {
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("跳过")
}
}
Expand Down

0 comments on commit 45a9088

Please sign in to comment.