Skip to content

Commit

Permalink
修复部分崩溃
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowine committed Sep 26, 2022
1 parent a2dbc58 commit cc80b40
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/src/main/java/cn/fuckhome/xiaowine/hook/module/add/Info.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit cc80b40

Please sign in to comment.