Skip to content

Commit

Permalink
Seed recovery pre android 12 design (#1681)
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan-Cerovsky authored Nov 15, 2024
1 parent 6aee0e2 commit 63215f7
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package co.electriccoin.zcash.ui.screen.seed.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import cash.z.ecc.sdk.ANDROID_STATE_FLOW_TIMEOUT
import co.electriccoin.zcash.spackle.AndroidApiVersion
import co.electriccoin.zcash.ui.R
import co.electriccoin.zcash.ui.common.model.OnboardingState
import co.electriccoin.zcash.ui.common.repository.WalletRepository
Expand Down Expand Up @@ -69,10 +70,12 @@ class SeedViewModel(
onClick =
when (args) {
SeedNavigationArgs.NEW_WALLET -> ::onNewWalletSeedClicked
SeedNavigationArgs.RECOVERY -> null
SeedNavigationArgs.RECOVERY ->
if (AndroidApiVersion.isAtLeastS) null else ::onNewWalletSeedClicked
},
mode = SeedSecretState.Mode.SEED,
isRevealPhraseVisible = args == SeedNavigationArgs.NEW_WALLET,
isRevealPhraseVisible =
if (AndroidApiVersion.isAtLeastS) args == SeedNavigationArgs.NEW_WALLET else true,
),
birthday =
SeedSecretState(
Expand Down

0 comments on commit 63215f7

Please sign in to comment.