diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuController.java b/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuController.java index 5096886314..0a2de925a2 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuController.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuController.java @@ -143,7 +143,7 @@ public class EditPOIMenuController extends MenuController { } @Override - public int getAdditionalInfoIconRes() { + public int getLeftIconId() { if (osmPoint.getGroup() == OsmPoint.Group.POI) { OpenstreetmapPoint osmP = (OpenstreetmapPoint) osmPoint; int iconResId = 0; @@ -174,6 +174,17 @@ public class EditPOIMenuController extends MenuController { } } + @Override + public int getAdditionalInfoIconRes() { + if (osmPoint.getAction() == Action.DELETE) { + return R.drawable.ic_action_type_delete_16; + } else if (osmPoint.getAction() == Action.MODIFY || osmPoint.getAction() == Action.REOPEN) { + return R.drawable.ic_action_type_edit_16; + } else { + return R.drawable.ic_action_type_add_16; + } + } + @Override public boolean needStreetName() { return false;