Open RP in bottom state if already has a route
This commit is contained in:
parent
3d1096caba
commit
f0b4d41401
2 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue