diff --git a/OsmAnd/src/net/osmand/plus/OsmandPlugin.java b/OsmAnd/src/net/osmand/plus/OsmandPlugin.java index bf9eccf4b4..0d887bc47f 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandPlugin.java +++ b/OsmAnd/src/net/osmand/plus/OsmandPlugin.java @@ -525,7 +525,7 @@ public abstract class OsmandPlugin { protected void registerLayerContextMenuActions(OsmandMapTileView mapView, ContextMenuAdapter adapter, MapActivity mapActivity) { } - protected void registerMapContextMenuActions(MapActivity mapActivity, double latitude, double longitude, ContextMenuAdapter adapter, Object selectedObj) { + protected void registerMapContextMenuActions(MapActivity mapActivity, double latitude, double longitude, ContextMenuAdapter adapter, Object selectedObj, boolean configureMenu) { } protected void registerOptionsMenuItems(MapActivity mapActivity, ContextMenuAdapter helper) { @@ -791,9 +791,9 @@ public abstract class OsmandPlugin { } } - public static void registerMapContextMenu(MapActivity map, double latitude, double longitude, ContextMenuAdapter adapter, Object selectedObj) { + public static void registerMapContextMenu(MapActivity map, double latitude, double longitude, ContextMenuAdapter adapter, Object selectedObj, boolean configureMenu) { for (OsmandPlugin plugin : getEnabledPlugins()) { - plugin.registerMapContextMenuActions(map, latitude, longitude, adapter, selectedObj); + plugin.registerMapContextMenuActions(map, latitude, longitude, adapter, selectedObj, configureMenu); } } diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index f7464c310e..69ae842c8b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -384,7 +384,7 @@ public class MapActivityActions implements DialogProvider { .setOrder(SEARCH_NEAR_ITEM_ORDER) .createItem()); - OsmandPlugin.registerMapContextMenu(mapActivity, latitude, longitude, adapter, selectedObj); + OsmandPlugin.registerMapContextMenu(mapActivity, latitude, longitude, adapter, selectedObj, configureMenu); ItemClickListener listener = new ItemClickListener() { @Override diff --git a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java index e57d86139a..781843f2d6 100644 --- a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java +++ b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java @@ -659,7 +659,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin { @Override public void registerMapContextMenuActions(final MapActivity mapActivity, final double latitude, final double longitude, - ContextMenuAdapter adapter, Object selectedObj) { + ContextMenuAdapter adapter, Object selectedObj, boolean configureMenu) { if (isRecording()) { return; } diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java index 121536418e..427831de54 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java @@ -219,7 +219,7 @@ public class OsmEditingPlugin extends OsmandPlugin { final double latitude, final double longitude, ContextMenuAdapter adapter, - final Object selectedObj) { + final Object selectedObj, boolean configureMenu) { ContextMenuAdapter.ItemClickListener listener = new ContextMenuAdapter.ItemClickListener() { @Override public boolean onContextMenuClick(ArrayAdapter adapter, int resId, int pos, boolean isChecked, int[] viewCoordinates) { diff --git a/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionPlugin.java b/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionPlugin.java index 8583190f30..038f9c9830 100644 --- a/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionPlugin.java +++ b/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionPlugin.java @@ -230,7 +230,7 @@ public class ParkingPositionPlugin extends OsmandPlugin { @Override public void registerMapContextMenuActions(final MapActivity mapActivity, final double latitude, final double longitude, - ContextMenuAdapter adapter, Object selectedObj) { + ContextMenuAdapter adapter, Object selectedObj, boolean configureMenu) { ItemClickListener addListener = new ItemClickListener() { @Override diff --git a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java index 62b475baac..ab0031a7df 100644 --- a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java +++ b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java @@ -400,7 +400,7 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin { @Override public void registerMapContextMenuActions(MapActivity mapActivity, final double latitude, final double longitude, - ContextMenuAdapter adapter, Object selectedObj) { + ContextMenuAdapter adapter, Object selectedObj, boolean configureMenu) { final WeakReference mapActivityRef = new WeakReference<>(mapActivity); if (mapActivity.getMapView().getMainLayer() instanceof MapTileLayer) { ItemClickListener listener = new ContextMenuAdapter.ItemClickListener() {