mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-22 17:51:29 +03:00
Merge PR #1690
This commit is contained in:
commit
1d69a3c669
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user