* UI: fixed wrong ability text capitalization in mode choose dialog;

This commit is contained in:
Oleg Agafonov 2020-05-19 00:27:42 +04:00
parent 944ef84036
commit 6b5108770c
2 changed files with 6 additions and 1 deletions

View file

@ -49,7 +49,9 @@ public class AbilityPickerView implements Serializable {
if (rule.isEmpty()) {
rule = ability.toString();
}
rule = Character.toUpperCase(rule.charAt(0)) + rule.substring(1);
if (!rule.isEmpty()) {
rule = Character.toUpperCase(rule.charAt(0)) + rule.substring(1);
}
return rule;
}