This commit is contained in:
Alexey Kulish 2017-03-30 20:45:45 +03:00
parent 19cf3dce67
commit 9f67de84f7

View file

@ -59,10 +59,11 @@ public class RenderedObjectMenuController extends MenuController {
return renderedObject.getName();
} else if (renderedObject.getTags().size() > 0) {
String lang = getMapActivity().getMyApplication().getSettings().MAP_PREFERRED_LOCALE.get().toLowerCase();
String name;
String name = "";
if (!Algorithms.isEmpty(lang)) {
name = renderedObject.getTags().get("name:" + lang);
} else {
}
if (Algorithms.isEmpty(name)) {
name = renderedObject.getTags().get("name");
}
return name;