From c5cc10e77b6d3312a660e0200bc9875e6f14679f Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Wed, 18 Nov 2015 18:16:33 +0300 Subject: [PATCH] Remove poi_type_tag from context menu --- OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuBuilder.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuBuilder.java b/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuBuilder.java index 0d6a2fa942..273e86c927 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuBuilder.java @@ -29,7 +29,12 @@ public class EditPOIMenuBuilder extends MenuBuilder { OpenstreetmapPoint point = (OpenstreetmapPoint) osmPoint; for (Map.Entry e : point.getEntity().getTags().entrySet()) { - String text = e.getKey() + "=" + e.getValue(); + String text; + if (EditPoiData.POI_TYPE_TAG.equals(e.getKey())) { + text = e.getValue(); + } else { + text = e.getKey() + "=" + e.getValue(); + } buildRow(view, R.drawable.ic_action_info_dark, text, 0, false, 0); } }