mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-25 17:46:44 +00:00
add functions to support qr encoding selection
This commit is contained in:
parent
60ac428002
commit
33bf35e3c4
1 changed files with 24 additions and 0 deletions
|
@ -115,6 +115,30 @@ public enum WalletModel {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean showLegacyQR() {
|
||||
if(this == COBO_VAULT) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean showBbqr() {
|
||||
if(this == COLDCARD || this == SPARROW) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean selectBbqr() {
|
||||
if(this == COLDCARD) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static WalletModel fromType(String type) {
|
||||
for(WalletModel model : values()) {
|
||||
if(model.getType().equalsIgnoreCase(type)) {
|
||||
|
|
Loading…
Reference in a new issue