This commit is contained in:
Alexander Sytnyk 2017-05-22 17:14:05 +03:00 committed by Alexey Kulish
parent 586472269d
commit 2616ba88ba

View file

@ -10,7 +10,6 @@ import android.net.Uri;
import android.os.AsyncTask; import android.os.AsyncTask;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Message;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.design.widget.TabLayout; import android.support.design.widget.TabLayout;
import android.support.design.widget.TextInputLayout; import android.support.design.widget.TextInputLayout;
@ -46,6 +45,7 @@ import android.widget.ImageButton;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import net.osmand.CallbackWithObject; import net.osmand.CallbackWithObject;
import net.osmand.PlatformUtil; import net.osmand.PlatformUtil;
import net.osmand.data.Amenity; import net.osmand.data.Amenity;
@ -407,7 +407,7 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment {
int nonalpha = 0; int nonalpha = 0;
for(int i = 0; i < name.length(); i++) { for(int i = 0; i < name.length(); i++) {
char c = name.charAt(i); char c = name.charAt(i);
if(Character.isAlphabetic(c)) { if(Character.isLetter(c) || Character.getType(c) == Character.LETTER_NUMBER) {
if(Character.toUpperCase(c) != c && Character.toLowerCase(c) == c) { if(Character.toUpperCase(c) != c && Character.toLowerCase(c) == c) {
lower ++; lower ++;
} else { } else {