Change edit icon
This commit is contained in:
parent
69305c7409
commit
c50a60261a
1 changed files with 9 additions and 4 deletions
|
@ -223,10 +223,15 @@ public class OsmEditingPlugin extends OsmandPlugin {
|
||||||
.setListener(listener)
|
.setListener(listener)
|
||||||
.createItem());
|
.createItem());
|
||||||
}
|
}
|
||||||
adapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(selectedObj instanceof OsmNotesPoint ? R.string.context_menu_item_modify_note :
|
if (selectedObj instanceof OsmNotesPoint) {
|
||||||
R.string.context_menu_item_open_note, mapActivity)
|
adapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.context_menu_item_modify_note, mapActivity)
|
||||||
.setIcon(R.drawable.ic_action_bug_dark)
|
.setIcon(R.drawable.ic_action_edit_dark)
|
||||||
.setListener(listener).createItem());
|
.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) {
|
public void openOsmNote(MapActivity mapActivity, double latitude, double longitude) {
|
||||||
|
|
Loading…
Reference in a new issue