Updated on 2026-08-14
This commit is contained in:
parent
e3ec61bc4b
commit
8b9642ba7e
4 changed files with 8 additions and 6 deletions
|
|
@ -104,6 +104,7 @@ class DefaultHotWalletAccessor @Inject constructor(
|
|||
|
||||
return runCatchingSdkErrors(hotWalletId, auth) {
|
||||
block(UnlockHotWallet(hotWalletId, it)).also {
|
||||
hotWalletPasswordRequester.successfulAuthentication()
|
||||
hotWalletPasswordRequester.dismiss()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ internal class AccessCodeModel @Inject constructor(
|
|||
if (!shouldAskForBiometry()) return
|
||||
|
||||
suspendCancellableCoroutine { continuation ->
|
||||
var buttonClicked = false
|
||||
uiMessageSender.send(
|
||||
DialogMessage(
|
||||
title = resourceReference(R.string.common_attention),
|
||||
|
|
@ -162,6 +163,7 @@ internal class AccessCodeModel @Inject constructor(
|
|||
firstAction = EventMessageAction(
|
||||
title = resourceReference(R.string.common_allow),
|
||||
onClick = {
|
||||
buttonClicked = true
|
||||
modelScope.launch {
|
||||
setAskBiometryShownUseCase()
|
||||
walletsRepository.setUseBiometricAuthentication(true)
|
||||
|
|
@ -175,6 +177,7 @@ internal class AccessCodeModel @Inject constructor(
|
|||
secondAction = EventMessageAction(
|
||||
title = resourceReference(R.string.save_user_wallet_agreement_dont_allow),
|
||||
onClick = {
|
||||
buttonClicked = true
|
||||
modelScope.launch {
|
||||
setAskBiometryShownUseCase()
|
||||
if (continuation.isActive) {
|
||||
|
|
@ -184,10 +187,8 @@ internal class AccessCodeModel @Inject constructor(
|
|||
},
|
||||
),
|
||||
onDismissRequest = {
|
||||
modelScope.launch {
|
||||
if (continuation.isActive) {
|
||||
continuation.resume(Unit)
|
||||
}
|
||||
if (continuation.isActive && buttonClicked.not()) {
|
||||
continuation.resume(Unit)
|
||||
}
|
||||
},
|
||||
),
|
||||
|
|
|
|||
|
|
@ -395,7 +395,7 @@ internal class WalletSettingsModel @Inject constructor(
|
|||
-> modelScope.launch {
|
||||
unlockHotWalletContextualUseCase.invoke(hotWalletId)
|
||||
.onLeft {
|
||||
Timber.e("Unable to unlock wallet with id ${params.userWalletId}")
|
||||
Timber.e(it, "Unable to unlock wallet with id ${params.userWalletId}")
|
||||
}
|
||||
.onRight {
|
||||
action()
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ tangemCardSdk = "develop-561"
|
|||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
tangemVico = "2.0.0-alpha.25-tangem12"
|
||||
#tangemVico = "0.0.1" # Keep it! - used for local builds ^
|
||||
tangemHotSdk = "develop-527"
|
||||
tangemHotSdk = "develop-528"
|
||||
#tangemHotSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue