Merge pull request #5436 from osmandapp/ContextMenuImprovements
add icon for operator and brand
This commit is contained in:
commit
ad8991ed0f
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue