remove pmmtool check

master
wlt233 1 year ago
parent 7089b8eb5d
commit c084950eb1

@ -52,20 +52,20 @@ class SettingActivity : AppCompatActivity() {
textUnlocker.setText(R.string.Unlocker_work_error) textUnlocker.setText(R.string.Unlocker_work_error)
} }
val textPmmtool = findViewById<TextView>(R.id.pmmtool_work_text) // val textPmmtool = findViewById<TextView>(R.id.pmmtool_work_text)
pmmtoolStatus = getProperty("tmp.AICEmu.pmmtool"); // pmmtoolStatus = getProperty("tmp.AICEmu.pmmtool");
if (pmmtoolStatus == "") { // if (pmmtoolStatus == "") {
textPmmtool.setText(R.string.Pmmtool_work_false) // textPmmtool.setText(R.string.Pmmtool_work_false)
textPmmtool.setTextColor(Color.RED) // textPmmtool.setTextColor(Color.RED)
} // }
else if (pmmtoolStatus == "0") { // else if (pmmtoolStatus == "0") {
textPmmtool.setText(R.string.Pmmtool_work_hook_failed) // textPmmtool.setText(R.string.Pmmtool_work_hook_failed)
textPmmtool.setTextColor(Color.RED) // textPmmtool.setTextColor(Color.RED)
} // }
else if (pmmtoolStatus == "1") { // else if (pmmtoolStatus == "1") {
textPmmtool.setText(R.string.Pmmtool_work_true) // textPmmtool.setText(R.string.Pmmtool_work_true)
textPmmtool.setTextColor(Color.GREEN) // textPmmtool.setTextColor(Color.GREEN)
} // }
} }
} }

@ -37,7 +37,8 @@
android:text="@string/Pmmtool_work_false" android:text="@string/Pmmtool_work_false"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="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"/>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
Loading…
Cancel
Save