Updated on 2026-08-14
This commit is contained in:
parent
7e618664bf
commit
f0817c86ee
11 changed files with 54 additions and 18 deletions
|
|
@ -7,6 +7,7 @@ import com.tangem.domain.cardReader.SettingsMask;
|
|||
import com.tangem.util.BTCUtils;
|
||||
import com.tangem.util.FormatUtil;
|
||||
import com.tangem.util.Util;
|
||||
import com.tangem.wallet.R;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -97,8 +98,6 @@ public class TangemCard {
|
|||
}
|
||||
|
||||
public void setBlockchainID(String blockchainID) {
|
||||
|
||||
|
||||
this.blockchainID = blockchainID;
|
||||
}
|
||||
|
||||
|
|
@ -1366,6 +1365,20 @@ public class TangemCard {
|
|||
countConfirmTX = new BigInteger(B.getString("confirmTx"), 16);
|
||||
}
|
||||
|
||||
public int getCardImageResource() {
|
||||
switch (getBlockchainID()) {
|
||||
case "BTC":
|
||||
return R.drawable.card_btc001;
|
||||
|
||||
case "ETH\\XTZ":
|
||||
return R.drawable.card_seed;
|
||||
|
||||
default:
|
||||
return R.drawable.card_btc001;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public enum EncryptionMode {
|
||||
None((byte) 0x0), Fast((byte) 0x1), Strong((byte) 0x2);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue