Compare commits

..

No commits in common. 'd1836091a28ce0fe2fe7d8a473131cb6d6a9a24f' and 'bb113c72f39fa6f46efc221551e77c6e92605e8c' have entirely different histories.

@ -11,8 +11,8 @@ android {
applicationId "moe.tqlwsl.aicemu"
minSdk 28
targetSdk 33
versionCode 6
versionName "1.0-Beta4.1"
versionCode 5
versionName "1.0-Beta4"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

@ -72,13 +72,13 @@ class MainActivity : AppCompatActivity() {
if (nfcAdapter == null) {
Log.e(TAG, "NFC not supported")
AlertDialog.Builder(this)
.setTitle(R.string.error).setMessage(R.string.nfc_not_supported).setCancelable(true).show()
.setTitle(R.string.error).setMessage(R.string.nfc_not_supported).setCancelable(false).show()
return
}
if (!nfcAdapter!!.isEnabled) {
Log.e(TAG, "NFC is off")
AlertDialog.Builder(this)
.setTitle(R.string.error).setMessage(R.string.nfc_not_on).setCancelable(true).show()
.setTitle(R.string.error).setMessage(R.string.nfc_not_on).setCancelable(false).show()
return
}

@ -17,7 +17,6 @@ import java.lang.reflect.Method
class SettingActivity : AppCompatActivity() {
private lateinit var prefs: SharedPreferences
private var isHCEFSupported: Boolean = false
private var isHCEFUnlocked: Boolean = false
private var pmmtoolStatus: String? = ""
@ -73,11 +72,10 @@ class SettingActivity : AppCompatActivity() {
// textPmmtool.setTextColor(Color.GREEN)
// }
prefs = applicationContext.getSharedPreferences("AICEmu", Context.MODE_WORLD_READABLE)
val loadPmmtool = prefs.getBoolean("loadPmmtool", false)
val pmmtoolSwitch = findViewById<SwitchCompat>(R.id.pmmtool_switch)
pmmtoolSwitch.isChecked = loadPmmtool
pmmtoolSwitch.setOnCheckedChangeListener { _, isChecked ->
var prefs: SharedPreferences =
applicationContext.getSharedPreferences("AICEmu", Context.MODE_WORLD_READABLE)
val editor = prefs.edit()
editor.putBoolean("loadPmmtool", isChecked)
editor.apply()

@ -34,5 +34,5 @@
<string name="apdu_service_desc">Emulate AIC Card</string>
<string name="pmmtool_switch">Change PMm with Pmmtool</string>
<string name="author_info" translatable="false">made by wlt233 with ❤\ntqlwsl.moe | 2709684396</string>
<string name="version_info" translatable="false">1.0-Beta4.1 (2023.09.01)</string>
<string name="version_info" translatable="false">1.0-Beta4 (2023.09.01)</string>
</resources>
Loading…
Cancel
Save