Remove context marker on map tap

This commit is contained in:
Alexey Kulish 2017-08-01 12:40:58 +03:00
parent f2b037d3c2
commit 8c9eb7cb55
2 changed files with 4 additions and 2 deletions

View file

@ -609,7 +609,8 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL
public void onSingleTapOnMap() {
if (menuController == null || !menuController.handleSingleTapOnMap()) {
hide();
updateMapCenter(null);
close();
if (mapActivity.getMapLayers().getMapQuickActionLayer().isLayerOn()) {
mapActivity.getMapLayers().getMapQuickActionLayer().refreshLayer();
}

View file

@ -763,7 +763,8 @@ public class ContextMenuLayer extends OsmandMapLayer {
if (movementListener.onTouchEvent(event)) {
if (menu.isVisible()) {
menu.hide();
menu.updateMapCenter(null);
menu.close();
}
if (multiSelectionMenu.isVisible()) {
multiSelectionMenu.hide();