Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @InjectView(R.id.journey_info_widget)
- JourneyInfoWidget journeyInfoWidget;
- ....................
- if (journeyInfoWidget.getMapView() != null) {
- mapNavigationController.setMapView(journeyInfoWidget.getMapView());
- mapNavigationController.setDisplayRouteFromCurrentLocation(true);
- GeoPointAndDrawable start = new GeoPointAndDrawable(
- R.drawable.customer_pointer,
- orderRequest.getStartLocation().getLatLng());
- if ((orderRequest.getBookingType() == null || orderRequest.getBookingType().equals(com.taxipixi.Constants.POINT_TO_POINT)) &&
- orderRequest.getEndLocation() != null) {
- GeoPointAndDrawable end = new GeoPointAndDrawable(
- R.drawable.flag_end,
- orderRequest.getEndLocation().getLatLng());
- mapNavigationController.resetPoints(start, end);
- } else {
- mapNavigationController.resetPoints(start);
- // journeyInfoWidget.dropOff.setVisibility(View.GONE);
- }
- }
- .......................
Add Comment
Please, Sign In to add comment