fix bug: pmmtool switch (ver.1.0-Beta4.1)

master
wlt233 1 year ago
parent bb113c72f3
commit d002ba021c

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

Loading…
Cancel
Save