mirror of
https://github.com/status-im/keycard-connect.git
synced 2025-01-10 02:55:58 +00:00
add pin caching on initialization to avoid too many taps
This commit is contained in:
parent
a40d878eef
commit
2845545845
@ -30,6 +30,7 @@ class InitCommand : CardCommand {
|
||||
context.cmdSet.select().checkOK()
|
||||
context.cmdSet.autoPair(initPairing)
|
||||
Registry.pairingManager.putPairing(context.cmdSet.applicationInfo.instanceUID, context.cmdSet.pairing)
|
||||
Registry.pinCache.putPIN(context.cmdSet.applicationInfo.instanceUID, initPIN!!)
|
||||
CardCommand.Result.OK
|
||||
} catch (e: IOException) {
|
||||
CardCommand.Result.RETRY
|
||||
|
Loading…
x
Reference in New Issue
Block a user