Skip to content

Commit

Permalink
Merge PR #1690
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Sep 13, 2024
2 parents aa485d4 + e12c9a4 commit 1d69a3c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ class MainActivity : FlutterFragmentActivity() {

allowScreenshots(false)

yubikit = YubiKitManager(
UsbYubiKeyManager(this),
val nfcManager = if (NfcAdapter.getDefaultAdapter(this) != null) {
NfcYubiKeyManager(this, NfcStateDispatcher(nfcStateListener))
)
} else null

yubikit = YubiKitManager(UsbYubiKeyManager(this), nfcManager)
}

override fun onNewIntent(intent: Intent) {
Expand Down

0 comments on commit 1d69a3c

Please sign in to comment.