From f0b4d4140192dc96b118ed219e989152b2d1b90d Mon Sep 17 00:00:00 2001 From: crimean Date: Fri, 8 Mar 2019 13:56:47 +0300 Subject: [PATCH] Open RP in bottom state if already has a route --- .../osmand/plus/routepreparationmenu/MapRouteInfoMenu.java | 4 ++-- OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java b/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java index b6168e6b29..2b02456e41 100644 --- a/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java +++ b/OsmAnd/src/net/osmand/plus/routepreparationmenu/MapRouteInfoMenu.java @@ -366,12 +366,12 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener return false; } - public void showHideMenu() { + public void showHideMenu(int menuState) { intermediateRequestsLatLon.clear(); if (isVisible()) { hide(); } else { - show(); + show(menuState); } } diff --git a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java index fb6db41e5c..174e72be42 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java @@ -325,8 +325,8 @@ public class MapControlsLayer extends OsmandMapLayer { mapActivity.getMapActions().stopNavigationWithoutConfirm(); } - public void showRouteInfoControlDialog() { - mapRouteInfoMenu.showHideMenu(); + public void showRouteInfoControlDialog(int menuState) { + mapRouteInfoMenu.showHideMenu(menuState); } public void showRouteInfoMenu() { @@ -421,7 +421,7 @@ public class MapControlsLayer extends OsmandMapLayer { mapActivity.getMapActions().enterRoutePlanningMode(null, null); } } else { - showRouteInfoControlDialog(); + showRouteInfoControlDialog(MenuState.HEADER_ONLY); } hasTargets = false; }