From c15da659c821e901ebf3b9398c7ae30d5c3b7bb4 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Mon, 19 Oct 2015 11:03:50 +0300 Subject: [PATCH] Context menu: open route info after FAB pressed --- OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java | 2 +- OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java index c7fcfc6800..33fd07201d 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java @@ -376,7 +376,7 @@ public class MapContextMenu { public void fabPressed() { mapActivity.getMapActions().directionTo(latLon.getLatitude(), latLon.getLongitude()); hide(); - // open navigation menu + mapActivity.getMapLayers().getMapControlsLayer().showRouteInfoControlDialog(); } public void buttonWaypointPressed() { diff --git a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java index e7785ab7a2..566ba129c5 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java @@ -369,8 +369,8 @@ public class MapControlsLayer extends OsmandMapLayer { } } - public void showDialog() { - mapRouteInfoControlDialog.setShowDialog(); + public void showRouteInfoControlDialog() { + mapRouteInfoControlDialog.showHideDialog(); } private void initControls() {