Merge pull request #3968 from mbethke/fix-TooManyCapitalLetters

fix testTooManyCapitalLetters wrt unicameral scripts
This commit is contained in:
vshcherb 2017-06-26 19:00:34 +02:00 committed by GitHub
commit 7ea3ac399a

View file

@ -408,10 +408,10 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment {
for(int i = 0; i < name.length(); i++) {
char c = name.charAt(i);
if(Character.isLetter(c) || Character.getType(c) == Character.LETTER_NUMBER) {
if(Character.toUpperCase(c) != c && Character.toLowerCase(c) == c) {
lower ++;
} else {
if(Character.isUpperCase(c)) {
capital ++;
} else {
lower ++;
}
} else {
nonalpha ++;