mirror of
https://github.com/status-im/keycard-connect.git
synced 2025-01-10 02:55:58 +00:00
handle cancel button on load key
This commit is contained in:
parent
540716df5e
commit
4d43c2c642
@ -105,8 +105,10 @@ class MainActivity : AppCompatActivity(), ScriptListener {
|
||||
}
|
||||
|
||||
private fun loadKeyHandler(resultCode: Int, data: Intent?) {
|
||||
val loadType = data?.getIntExtra(LOAD_TYPE, LOAD_NONE) ?: LOAD_NONE
|
||||
val mnemonic = data?.getStringExtra(LOAD_MNEMONIC)
|
||||
if (resultCode != Activity.RESULT_OK || data == null) return
|
||||
|
||||
val loadType = data.getIntExtra(LOAD_TYPE, LOAD_NONE)
|
||||
val mnemonic = data.getStringExtra(LOAD_MNEMONIC)
|
||||
|
||||
Registry.scriptExecutor.runScript(scriptWithAuthentication().plus(LoadKeyCommand(loadType, mnemonic)))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user