From cc80b40c95bfa48485a36ac5a4a346ab958cdfe2 Mon Sep 17 00:00:00 2001 From: xiao_wine Date: Mon, 26 Sep 2022 08:10:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E5=B4=A9?= =?UTF-8?q?=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/fuckhome/xiaowine/hook/module/add/Info.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/cn/fuckhome/xiaowine/hook/module/add/Info.kt b/app/src/main/java/cn/fuckhome/xiaowine/hook/module/add/Info.kt index f51e1a8..55374f8 100644 --- a/app/src/main/java/cn/fuckhome/xiaowine/hook/module/add/Info.kt +++ b/app/src/main/java/cn/fuckhome/xiaowine/hook/module/add/Info.kt @@ -34,9 +34,11 @@ import cn.fuckhome.xiaowine.utils.Utils.isNull import com.github.kyuubiran.ezxhelper.init.InitFields.appContext import com.github.kyuubiran.ezxhelper.init.InitFields.moduleRes import com.github.kyuubiran.ezxhelper.utils.* +import com.jaredrummler.ktsh.Shell import java.io.File import java.util.* import kotlin.math.roundToInt +import kotlin.system.exitProcess @SuppressLint("StaticFieldLeak") @@ -104,8 +106,12 @@ object Info : BaseHook() { textColors = mTxtMemoryInfo1.textColors if (TextViewMaps.size != 0) { - TextViewMaps.forEach { its -> - TextViewMaps.remove(its.key) + try { + TextViewMaps.forEach { its -> + TextViewMaps.remove(its.key) + } + } catch (_: ConcurrentModificationException) { + exitProcess(0); } } TextViewMaps.apply {