From 5252608c8f821f323ec255a03d034e43e44c92db Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 18 May 2018 17:16:45 +0300 Subject: [PATCH] add icon for operator and brand --- .../plus/mapcontextmenu/builders/AmenityMenuBuilder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java index 7cc5e816e5..8dfb5ff740 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java @@ -469,6 +469,8 @@ public class AmenityMenuBuilder extends MenuBuilder { iconId = R.drawable.ic_plugin_wikipedia; } else if (key.equals("addr:housename") || key.equals("whitewater:rapid_name")) { iconId = R.drawable.ic_action_poi_name; + } else if (key.equals("operator") || key.equals("brand")) { + iconId = R.drawable.ic_action_poi_brand; } else { iconId = R.drawable.ic_action_info_dark; } @@ -492,7 +494,7 @@ public class AmenityMenuBuilder extends MenuBuilder { textPrefix = ""; } } - if (icon == null && isText) { + if (icon == null && isText && iconId == 0) { iconId = R.drawable.ic_action_note_dark; } } else {