This commit is contained in:
Adam Velebil 2024-09-13 15:19:52 +02:00
commit 1d69a3c669
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -129,10 +129,11 @@ class MainActivity : FlutterFragmentActivity() {
allowScreenshots(false) allowScreenshots(false)
yubikit = YubiKitManager( val nfcManager = if (NfcAdapter.getDefaultAdapter(this) != null) {
UsbYubiKeyManager(this),
NfcYubiKeyManager(this, NfcStateDispatcher(nfcStateListener)) NfcYubiKeyManager(this, NfcStateDispatcher(nfcStateListener))
) } else null
yubikit = YubiKitManager(UsbYubiKeyManager(this), nfcManager)
} }
override fun onNewIntent(intent: Intent) { override fun onNewIntent(intent: Intent) {