Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-13 15:34:05 +03:00
parent d48eea4fb0
commit a88a63d6ef
22 changed files with 95 additions and 37 deletions

View file

@ -44,7 +44,7 @@ class HasSingleWalletSignedHashesUseCase @Inject constructor(
private fun UserWallet.Cold.isCorrectCardType(): Boolean {
return with(scanResponse.cardTypesResolver) {
!DemoConfig().isDemoCardId(cardId) && isReleaseFirmwareType() && !isMultiwalletAllowed() && !isTangemTwins()
!DemoConfig.isDemoCardId(cardId) && isReleaseFirmwareType() && !isMultiwalletAllowed() && !isTangemTwins()
}
}
}

View file

@ -52,6 +52,7 @@ internal class WalletImageResolver @Inject constructor(
cardTypesResolver.isTangemTwins() -> R.drawable.ill_twins_120_106
cardTypesResolver.isStart2Coin() -> R.drawable.ill_start2coin_120_106
cardTypesResolver.isTangemNote() -> noteImage?.imageResId
DemoConfig.isDemoNoteAsMultiwallet(userWallet.cardId) -> R.drawable.ill_wallet2_cards2_120_106
else -> null
}
}
@ -84,7 +85,7 @@ internal class WalletImageResolver @Inject constructor(
@DrawableRes twoBackupResId: Int = R.drawable.ill_wallet2_cards3_120_106,
): Int? {
return resolveWalletWithBackups { count ->
if (DemoConfig().isDemoCardId(cardId)) return@resolveWalletWithBackups oneBackupResId
if (DemoConfig.isDemoCardId(cardId)) return@resolveWalletWithBackups oneBackupResId
when (count) {
WALLET_WITH_ONE_BACKUP_COUNT -> oneBackupResId