Updated on 2026-08-14
This commit is contained in:
parent
cf28f21151
commit
cfc2be854a
4 changed files with 750 additions and 2 deletions
|
|
@ -207,11 +207,11 @@ internal class GetWalletNotificationsFactory @Inject constructor(
|
|||
clickIntents: WalletClickIntents,
|
||||
) {
|
||||
val currencies = flattenCurrencies.getMissingAddressCurrencies().ifEmpty { return }
|
||||
|
||||
addIf(
|
||||
element = WalletNotificationUM.MissingAddresses(
|
||||
tangemIcon = walletInterationIcon(userWallet),
|
||||
missingAddressesCount = currencies.distinctBy { it.network.id }.count(),
|
||||
isHotWallet = userWallet is UserWallet.Hot,
|
||||
onGenerateClick = {
|
||||
clickIntents.onGenerateMissedAddressesClick(
|
||||
userWalletId = userWallet.walletId,
|
||||
|
|
|
|||
|
|
@ -243,13 +243,18 @@ internal sealed class WalletNotificationUM(val messageUM: TangemMessageUM, val t
|
|||
data class MissingAddresses(
|
||||
@DrawableRes val tangemIcon: Int?,
|
||||
val missingAddressesCount: Int,
|
||||
val isHotWallet: Boolean,
|
||||
val onGenerateClick: () -> Unit,
|
||||
) : WalletNotificationUM(
|
||||
messageUM = TangemMessageUM(
|
||||
id = "MissingAddressesNotification",
|
||||
title = resourceReference(id = R.string.warning_missing_derivation_title),
|
||||
subtitle = pluralReference(
|
||||
id = R.plurals.warning_missing_derivation_message,
|
||||
id = if (isHotWallet) {
|
||||
R.plurals.warning_missing_derivation_no_nfc_message
|
||||
} else {
|
||||
R.plurals.warning_missing_derivation_message
|
||||
},
|
||||
count = missingAddressesCount,
|
||||
formatArgs = wrappedList(missingAddressesCount),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue