Updated on 2026-08-14
This commit is contained in:
parent
10c0b8e680
commit
452c5511bc
23 changed files with 46 additions and 32 deletions
|
|
@ -55,16 +55,16 @@ class MainActivity : AppCompatActivity(), NfcAdapter.ReaderCallback, CardProtoco
|
|||
|
||||
fun callingIntent(context: Context) = Intent(context, MainActivity::class.java)
|
||||
|
||||
fun commonInit(context: Context) {
|
||||
if (PINStorage.needInit())
|
||||
PINStorage.init(context)
|
||||
|
||||
if (Issuer.needInit())
|
||||
Issuer.init(context)
|
||||
|
||||
if (Firmwares.needInit())
|
||||
Firmwares.init(context)
|
||||
}
|
||||
// fun commonInit(context: Context) {
|
||||
// if (PINStorage.needInit())
|
||||
// PINStorage.init(context)
|
||||
//
|
||||
// if (Issuer.needInit())
|
||||
// Issuer.init(context)
|
||||
//
|
||||
// if (Firmwares.needInit())
|
||||
// Firmwares.init(context)
|
||||
// }
|
||||
}
|
||||
|
||||
private var nfcManager: NfcManager? = null
|
||||
|
|
@ -101,7 +101,7 @@ class MainActivity : AppCompatActivity(), NfcAdapter.ReaderCallback, CardProtoco
|
|||
|
||||
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR
|
||||
|
||||
commonInit(applicationContext)
|
||||
// commonInit(applicationContext)
|
||||
|
||||
setNfcAdapterReaderCallback(this)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue