Don't back to location when context menu is visible

This commit is contained in:
Nazar-Kutz 2020-08-10 13:00:29 +03:00
parent 4d9e23f3c7
commit 3d2a3e4160

View file

@ -426,7 +426,7 @@ public class MapControlsLayer extends OsmandMapLayer {
if (OsmAndLocationProvider.isLocationPermissionAvailable(mapActivity)) {
if (longClick) {
showContextMenuForMyLocation();
} else {
} else if (!mapActivity.getContextMenu().isVisible()) {
mapActivity.getMapViewTrackingUtilities().backToLocationImpl();
}
} else {