add icon for operator and brand

This commit is contained in:
Chumva 2018-05-18 17:16:45 +03:00
parent 73068c9504
commit 5252608c8f

View file

@ -469,6 +469,8 @@ public class AmenityMenuBuilder extends MenuBuilder {
iconId = R.drawable.ic_plugin_wikipedia; iconId = R.drawable.ic_plugin_wikipedia;
} else if (key.equals("addr:housename") || key.equals("whitewater:rapid_name")) { } else if (key.equals("addr:housename") || key.equals("whitewater:rapid_name")) {
iconId = R.drawable.ic_action_poi_name; iconId = R.drawable.ic_action_poi_name;
} else if (key.equals("operator") || key.equals("brand")) {
iconId = R.drawable.ic_action_poi_brand;
} else { } else {
iconId = R.drawable.ic_action_info_dark; iconId = R.drawable.ic_action_info_dark;
} }
@ -492,7 +494,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
textPrefix = ""; textPrefix = "";
} }
} }
if (icon == null && isText) { if (icon == null && isText && iconId == 0) {
iconId = R.drawable.ic_action_note_dark; iconId = R.drawable.ic_action_note_dark;
} }
} else { } else {