Navigate in pedestrian mode from transport route controller
This commit is contained in:
parent
3e14afa676
commit
bedb45e61e
4 changed files with 18 additions and 6 deletions
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -83,6 +83,11 @@ public class ParkingPositionMenuController extends MenuController {
|
|||
return parkingTitle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean navigateInPedestrianMode() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean displayDistanceDirection() {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue