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() { public boolean navigateInPedestrianMode() {
return menuController instanceof ParkingPositionMenuController; if (menuController != null) {
return menuController.navigateInPedestrianMode();
}
return false;
} }
public boolean close() { public boolean close() {

View file

@ -403,6 +403,10 @@ public abstract class MenuController extends BaseMenuController {
return null; return null;
} }
public boolean navigateInPedestrianMode() {
return false;
}
public int getFavActionIconId() { public int getFavActionIconId() {
return R.drawable.map_action_fav_dark; 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 @Override
protected Object getObject() { protected Object getObject() {
return transportRoute; return transportRoute;
@ -102,11 +107,6 @@ public class TransportRouteController extends MenuController {
return false; return false;
} }
@Override
public boolean navigateButtonVisible() {
return false;
}
@Override @Override
public boolean isClosable() { public boolean isClosable() {
return false; return false;

View file

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