Merge pull request #3800 from osmandapp/alex_branch

Alex branch
This commit is contained in:
Alexey 2017-05-22 19:50:55 +03:00 committed by GitHub
commit e77b4bcfb0
2 changed files with 2 additions and 3 deletions

View file

@ -171,7 +171,6 @@ public class EditFavoriteGroupDialogFragment extends BottomSheetDialogFragment {
getMyApplication().getFavorites()
.editFavouriteGroup(group, group.name, group.color, visible);
updateParentFragment();
dismiss();
}
});

View file

@ -10,7 +10,6 @@ import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.os.Message;
import android.support.annotation.NonNull;
import android.support.design.widget.TabLayout;
import android.support.design.widget.TextInputLayout;
@ -46,6 +45,7 @@ import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import net.osmand.CallbackWithObject;
import net.osmand.PlatformUtil;
import net.osmand.data.Amenity;
@ -407,7 +407,7 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment {
int nonalpha = 0;
for(int i = 0; i < name.length(); 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) {
lower ++;
} else {