From 68ab992f280df75a1a9920d68f3a648353f5e9df Mon Sep 17 00:00:00 2001 From: cepprice Date: Wed, 3 Feb 2021 13:27:39 +0500 Subject: [PATCH] Fix #5970 Make menu button active at once --- OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java | 2 ++ OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java | 1 + 2 files changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java index 55b24b7ed4..946d79ca18 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiDialogFragment.java @@ -542,6 +542,7 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment { mapActivity.getContextMenu().showOrUpdate( new LatLon(point.getLatitude(), point.getLongitude()), plugin.getOsmEditsLayer(mapActivity).getObjectName(point), point); + mapActivity.getMapLayers().getContextMenuLayer().updateContextMenu(); } } @@ -869,6 +870,7 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment { mapActivity.getContextMenu().showOrUpdate( new LatLon(point.getLatitude(), point.getLongitude()), plugin.getOsmEditsLayer(mapActivity).getObjectName(point), point); + mapActivity.getMapLayers().getContextMenuLayer().updateContextMenu(); } } else { Toast.makeText(activity, R.string.poi_remove_success, Toast.LENGTH_LONG) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java index a13ae28bba..c4ab750fb3 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java @@ -387,6 +387,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider PointDescription pd = new PointDescription(PointDescription.POINT_TYPE_OSM_BUG, obj.local.getText()); activity.getContextMenu().show(new LatLon(obj.local.getLatitude(), obj.local.getLongitude()), pd, obj.local); + activity.getMapLayers().getContextMenuLayer().updateContextMenu(); } } else { if (action == Action.REOPEN) {