Updated on 2026-08-14

This commit is contained in:
Tangem 2020-07-17 13:46:34 +03:00
parent e52cc6582d
commit 7878fa2148

View file

@ -91,7 +91,7 @@ class LoadedWalletFragment : BaseFragment(), NavigationResultListener, NfcAdapte
resources.getColorStateList(R.color.btn_dark)
}
private val activeColor: ColorStateList by lazy {
val color = if ((Util.bytesToHex(ctx.card?.cid)?.startsWith("10") == true)) {
val color = if (ctx.card?.isStart2CoinCard() == true) {
R.color.start2coin_orange
} else {
R.color.colorAccent
@ -175,7 +175,7 @@ class LoadedWalletFragment : BaseFragment(), NavigationResultListener, NfcAdapte
if (Util.bytesToHex(ctx.card?.cid)?.startsWith("10") == true) {
if (ctx.card?.isStart2CoinCard() == true) {
btnLoad?.visibility = View.GONE
}
@ -961,4 +961,8 @@ class LoadedWalletFragment : BaseFragment(), NavigationResultListener, NfcAdapte
Toast.makeText(activity, R.string.loaded_wallet_toast_copied, Toast.LENGTH_LONG).show()
}
private fun TangemCard.isStart2CoinCard(): Boolean {
return (Util.bytesToHex(ctx.card?.cid)?.startsWith("1") == true)
}
}