Change edit icon

This commit is contained in:
PavelRatushnyi 2017-10-03 17:26:39 +03:00
parent 69305c7409
commit c50a60261a

View file

@ -223,11 +223,16 @@ public class OsmEditingPlugin extends OsmandPlugin {
.setListener(listener)
.createItem());
}
adapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(selectedObj instanceof OsmNotesPoint ? R.string.context_menu_item_modify_note :
R.string.context_menu_item_open_note, mapActivity)
if (selectedObj instanceof OsmNotesPoint) {
adapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.context_menu_item_modify_note, mapActivity)
.setIcon(R.drawable.ic_action_edit_dark)
.setListener(listener).createItem());
} else {
adapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.context_menu_item_open_note, mapActivity)
.setIcon(R.drawable.ic_action_bug_dark)
.setListener(listener).createItem());
}
}
public void openOsmNote(MapActivity mapActivity, double latitude, double longitude) {
if (osmBugsLayer == null) {