Open RP in bottom state if already has a route

This commit is contained in:
crimean 2019-03-08 13:56:47 +03:00
parent 3d1096caba
commit f0b4d41401
2 changed files with 5 additions and 5 deletions

View file

@ -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);
}
}

View file

@ -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;
}