update 总是跳回应用

This commit is contained in:
gallonyin
2023-05-12 09:59:33 +08:00
parent 359dbcde91
commit 21fb01a762

View File

@@ -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
} }