fix camelcase on wallet model displayed names

This commit is contained in:
Craig Raw 2025-02-20 17:03:00 +02:00
parent 7666060c8e
commit 5fd8e9416a

View file

@ -166,6 +166,12 @@ public enum WalletModel {
for(String word : words) {
if(word.equals("1")) {
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(word.substring(1));