Updated on 2026-08-14
This commit is contained in:
parent
5b516f2c9b
commit
a82d8cdbba
43 changed files with 829 additions and 89 deletions
|
|
@ -97,19 +97,15 @@ internal class CreateWalletBackupModel @Inject constructor(
|
|||
stackNavigation.push(
|
||||
configuration = CreateWalletBackupRoute.BackupCompleted(
|
||||
isUpgradeFlow = params.isUpgradeFlow,
|
||||
isLastScreen = !params.shouldSetAccessCode,
|
||||
isLastScreen = params.nextScreen == null,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
fun onManualBackupCompleted() {
|
||||
if (params.shouldSetAccessCode) {
|
||||
router.replaceCurrent(
|
||||
route = AppRoute.UpdateAccessCode(
|
||||
userWalletId = params.userWalletId,
|
||||
source = params.analyticsSource,
|
||||
),
|
||||
)
|
||||
val nextScreen = params.nextScreen
|
||||
if (nextScreen != null) {
|
||||
router.replaceCurrent(nextScreen)
|
||||
} else {
|
||||
router.pop()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,12 @@ internal class UpdateAccessCodeModel @Inject constructor(
|
|||
|
||||
inner class MobileWalletSetupFinishedComponentModelCallbacks : MobileWalletSetupFinishedComponent.ModelCallbacks {
|
||||
override fun onFinishClick() {
|
||||
router.pop()
|
||||
val nextScreen = params.nextScreen
|
||||
if (nextScreen != null) {
|
||||
router.replaceCurrent(nextScreen)
|
||||
} else {
|
||||
router.pop()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue