update 总是跳回应用
This commit is contained in:
@@ -126,7 +126,6 @@ fun getRoot(ignoreCheck: Boolean): AccessibilityNodeInfo {
|
|||||||
WeworkController.weworkService.currentPackage = root.packageName?.toString() ?: ""
|
WeworkController.weworkService.currentPackage = root.packageName?.toString() ?: ""
|
||||||
if (System.currentTimeMillis() % 30 == 0L) {
|
if (System.currentTimeMillis() % 30 == 0L) {
|
||||||
error("当前不在企业微信: ${root.packageName}")
|
error("当前不在企业微信: ${root.packageName}")
|
||||||
if (!root.packageName.contains("worktool")) {
|
|
||||||
if (!FloatWindowHelper.isPause) {
|
if (!FloatWindowHelper.isPause) {
|
||||||
ToastUtils.show("当前不在企业微信: ${root.packageName}\n尝试跳转到企业微信")
|
ToastUtils.show("当前不在企业微信: ${root.packageName}\n尝试跳转到企业微信")
|
||||||
Utils.getApp().packageManager.getLaunchIntentForPackage(Constant.PACKAGE_NAMES)
|
Utils.getApp().packageManager.getLaunchIntentForPackage(Constant.PACKAGE_NAMES)
|
||||||
@@ -136,7 +135,6 @@ fun getRoot(ignoreCheck: Boolean): AccessibilityNodeInfo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (ignoreCheck) {
|
if (ignoreCheck) {
|
||||||
return root
|
return root
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user