Skip to content

Commit

Permalink
Merge pull request #43 from GuoXiCheng/dev
Browse files Browse the repository at this point in the history
add app skip
  • Loading branch information
GuoXiCheng authored Sep 30, 2023
2 parents 36c151e + 45a9088 commit 0009f88
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 0009f88

Please sign in to comment.