Navigate in pedestrian mode from transport route controller

This commit is contained in:
PavelRatushny 2017-12-29 16:43:01 +02:00
parent 3e14afa676
commit bedb45e61e
4 changed files with 18 additions and 6 deletions

View file

@ -419,7 +419,10 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL
}
public boolean navigateInPedestrianMode() {
return menuController instanceof ParkingPositionMenuController;
if (menuController != null) {
return menuController.navigateInPedestrianMode();
}
return false;
}
public boolean close() {

View file

@ -403,6 +403,10 @@ public abstract class MenuController extends BaseMenuController {
return null;
}
public boolean navigateInPedestrianMode() {
return false;
}
public int getFavActionIconId() {
return R.drawable.map_action_fav_dark;
}

View file

@ -80,6 +80,11 @@ public class TransportRouteController extends MenuController {
}
}
@Override
public boolean navigateInPedestrianMode() {
return true;
}
@Override
protected Object getObject() {
return transportRoute;
@ -102,11 +107,6 @@ public class TransportRouteController extends MenuController {
return false;
}
@Override
public boolean navigateButtonVisible() {
return false;
}
@Override
public boolean isClosable() {
return false;

View file

@ -83,6 +83,11 @@ public class ParkingPositionMenuController extends MenuController {
return parkingTitle;
}
@Override
public boolean navigateInPedestrianMode() {
return true;
}
@Override
public boolean displayDistanceDirection() {
return true;