[#864] Duplicate Synchronizers in Demo-app

* [#864] Duplicate Synchronizers in Demo-app

* Make val const
This commit is contained in:
Honza Rychnovsky 2023-01-05 14:48:52 +01:00 committed by GitHub
parent 66ad391865
commit 60fc5f2083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -71,7 +71,8 @@ class WalletCoordinator(context: Context, val persistableWallet: Flow<Persistabl
zcashNetwork = persistableWallet.network,
lightWalletEndpoint = LightWalletEndpoint.defaultForNetwork(persistableWallet.network),
birthday = persistableWallet.birthday,
seed = persistableWallet.seedPhrase.toByteArray()
seed = persistableWallet.seedPhrase.toByteArray(),
alias = NEW_UI_SYNCHRONIZER_ALIAS
)
trySend(InternalSynchronizerStatus.Available(closeableSynchronizer))
@ -159,5 +160,7 @@ class WalletCoordinator(context: Context, val persistableWallet: Flow<Persistabl
}
// Allows for extension functions
companion object
companion object {
internal const val NEW_UI_SYNCHRONIZER_ALIAS = "new_ui"
}
}

View File

@ -72,7 +72,6 @@ class WalletViewModel(application: Application) : AndroidViewModel(application)
val secretState: StateFlow<SecretState> = walletCoordinator.persistableWallet
.map { persistableWallet ->
Twig.info { "Here" }
if (null == persistableWallet) {
SecretState.None
} else {