Fix creating items on context menu
This commit is contained in:
parent
663f1b62ff
commit
1f3ca9388a
1 changed files with 4 additions and 9 deletions
|
@ -223,15 +223,10 @@ public class OsmEditingPlugin extends OsmandPlugin {
|
|||
.setListener(listener)
|
||||
.createItem());
|
||||
}
|
||||
if (selectedObj instanceof OsmNotesPoint) {
|
||||
adapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.context_menu_item_modify_note, mapActivity)
|
||||
.setIcon(R.drawable.ic_action_bug_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());
|
||||
}
|
||||
adapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(selectedObj instanceof OsmNotesPoint ? R.string.context_menu_item_modify_note :
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue