Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-20 11:52:25 +03:00
parent f186efc935
commit 032356ae26
2 changed files with 9 additions and 9 deletions

View file

@ -35,14 +35,6 @@ sealed class WalletNotification(val config: NotificationConfig) {
title = resourceReference(id = R.string.warning_failed_to_verify_card_title),
subtitle = resourceReference(id = R.string.warning_failed_to_verify_card_message),
)
data class LowSignatures(val count: Int) : Critical(
title = resourceReference(id = R.string.warning_low_signatures_title),
subtitle = resourceReference(
id = R.string.warning_low_signatures_message,
formatArgs = wrappedList(count),
),
)
}
sealed class Warning(
@ -91,6 +83,14 @@ sealed class WalletNotification(val config: NotificationConfig) {
title = resourceReference(id = R.string.warning_testnet_card_title),
subtitle = resourceReference(id = R.string.warning_testnet_card_message),
)
data class LowSignatures(val count: Int) : Warning(
title = resourceReference(id = R.string.warning_low_signatures_title),
subtitle = resourceReference(
id = R.string.warning_low_signatures_message,
formatArgs = wrappedList(count),
),
)
}
sealed class Informational(

View file

@ -77,7 +77,7 @@ internal class WalletNotificationsListFactory(
cardTypesResolver.getRemainingSignatures()?.let { remainingSignatures ->
addIf(
element = WalletNotification.Critical.LowSignatures(count = remainingSignatures),
element = WalletNotification.Warning.LowSignatures(count = remainingSignatures),
condition = remainingSignatures <= MAX_REMAINING_SIGNATURES_COUNT,
)
}