From 9f67de84f77d08e35f299362966942c6dddc5f4d Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Thu, 30 Mar 2017 20:45:45 +0300 Subject: [PATCH] Fix #3576 --- .../controllers/RenderedObjectMenuController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/RenderedObjectMenuController.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/RenderedObjectMenuController.java index 53ea4bf3d3..a00329f9ec 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/RenderedObjectMenuController.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/RenderedObjectMenuController.java @@ -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;