Merge pull request #10791 from osmandapp/fix_5970

Fix #5970 Make menu button active at once
This commit is contained in:
Vitaliy 2021-02-07 12:37:59 +02:00 committed by GitHub
commit 27b47907f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -542,6 +542,7 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment {
mapActivity.getContextMenu().showOrUpdate( mapActivity.getContextMenu().showOrUpdate(
new LatLon(point.getLatitude(), point.getLongitude()), new LatLon(point.getLatitude(), point.getLongitude()),
plugin.getOsmEditsLayer(mapActivity).getObjectName(point), point); plugin.getOsmEditsLayer(mapActivity).getObjectName(point), point);
mapActivity.getMapLayers().getContextMenuLayer().updateContextMenu();
} }
} }
@ -869,6 +870,7 @@ public class EditPoiDialogFragment extends BaseOsmAndDialogFragment {
mapActivity.getContextMenu().showOrUpdate( mapActivity.getContextMenu().showOrUpdate(
new LatLon(point.getLatitude(), point.getLongitude()), new LatLon(point.getLatitude(), point.getLongitude()),
plugin.getOsmEditsLayer(mapActivity).getObjectName(point), point); plugin.getOsmEditsLayer(mapActivity).getObjectName(point), point);
mapActivity.getMapLayers().getContextMenuLayer().updateContextMenu();
} }
} else { } else {
Toast.makeText(activity, R.string.poi_remove_success, Toast.LENGTH_LONG) Toast.makeText(activity, R.string.poi_remove_success, Toast.LENGTH_LONG)

View file

@ -387,6 +387,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
PointDescription pd = new PointDescription(PointDescription.POINT_TYPE_OSM_BUG, obj.local.getText()); PointDescription pd = new PointDescription(PointDescription.POINT_TYPE_OSM_BUG, obj.local.getText());
activity.getContextMenu().show(new LatLon(obj.local.getLatitude(), obj.local.getLongitude()), activity.getContextMenu().show(new LatLon(obj.local.getLatitude(), obj.local.getLongitude()),
pd, obj.local); pd, obj.local);
activity.getMapLayers().getContextMenuLayer().updateContextMenu();
} }
} else { } else {
if (action == Action.REOPEN) { if (action == Action.REOPEN) {