From c084950eb1643be6f6c01d50d1fc527c7afe3ec8 Mon Sep 17 00:00:00 2001 From: wlt233 <1486185683@qq.com> Date: Mon, 1 May 2023 00:16:30 +0800 Subject: [PATCH] remove pmmtool check --- .../java/moe/tqlwsl/aicemu/SettingActivity.kt | 28 +++++++++---------- app/src/main/res/layout/activity_setting.xml | 3 +- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/moe/tqlwsl/aicemu/SettingActivity.kt b/app/src/main/java/moe/tqlwsl/aicemu/SettingActivity.kt index 2b0ebab..7ec73de 100644 --- a/app/src/main/java/moe/tqlwsl/aicemu/SettingActivity.kt +++ b/app/src/main/java/moe/tqlwsl/aicemu/SettingActivity.kt @@ -52,20 +52,20 @@ class SettingActivity : AppCompatActivity() { textUnlocker.setText(R.string.Unlocker_work_error) } - val textPmmtool = findViewById(R.id.pmmtool_work_text) - pmmtoolStatus = getProperty("tmp.AICEmu.pmmtool"); - if (pmmtoolStatus == "") { - textPmmtool.setText(R.string.Pmmtool_work_false) - textPmmtool.setTextColor(Color.RED) - } - else if (pmmtoolStatus == "0") { - textPmmtool.setText(R.string.Pmmtool_work_hook_failed) - textPmmtool.setTextColor(Color.RED) - } - else if (pmmtoolStatus == "1") { - textPmmtool.setText(R.string.Pmmtool_work_true) - textPmmtool.setTextColor(Color.GREEN) - } +// val textPmmtool = findViewById(R.id.pmmtool_work_text) +// pmmtoolStatus = getProperty("tmp.AICEmu.pmmtool"); +// if (pmmtoolStatus == "") { +// textPmmtool.setText(R.string.Pmmtool_work_false) +// textPmmtool.setTextColor(Color.RED) +// } +// else if (pmmtoolStatus == "0") { +// textPmmtool.setText(R.string.Pmmtool_work_hook_failed) +// textPmmtool.setTextColor(Color.RED) +// } +// else if (pmmtoolStatus == "1") { +// textPmmtool.setText(R.string.Pmmtool_work_true) +// textPmmtool.setTextColor(Color.GREEN) +// } } } diff --git a/app/src/main/res/layout/activity_setting.xml b/app/src/main/res/layout/activity_setting.xml index d1a7923..3b87071 100644 --- a/app/src/main/res/layout/activity_setting.xml +++ b/app/src/main/res/layout/activity_setting.xml @@ -37,7 +37,8 @@ android:text="@string/Pmmtool_work_false" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/unlocker_work_text" /> + app:layout_constraintTop_toBottomOf="@+id/unlocker_work_text" + android:visibility="gone"/> \ No newline at end of file