mirror of
https://github.com/sparrowwallet/drongo.git
synced 2025-11-05 11:56:38 +00:00
fix camelcase on wallet model displayed names
This commit is contained in:
parent
7666060c8e
commit
5fd8e9416a
1 changed files with 6 additions and 0 deletions
|
|
@ -166,6 +166,12 @@ public enum WalletModel {
|
||||||
for(String word : words) {
|
for(String word : words) {
|
||||||
if(word.equals("1")) {
|
if(word.equals("1")) {
|
||||||
word = "one";
|
word = "one";
|
||||||
|
} else if(Character.isDigit(word.charAt(0))) {
|
||||||
|
word = word.toUpperCase(Locale.ROOT);
|
||||||
|
} else if(BITBOX_02.getType().startsWith(word)) {
|
||||||
|
word = "BitBox";
|
||||||
|
} else if(word.equals(ONEKEY_PRO.getType())) {
|
||||||
|
word = "OneKey";
|
||||||
}
|
}
|
||||||
builder.append(Character.toUpperCase(word.charAt(0)));
|
builder.append(Character.toUpperCase(word.charAt(0)));
|
||||||
builder.append(word.substring(1));
|
builder.append(word.substring(1));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue