Mechele

Untitled

Feb 11th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. @InjectView(R.id.journey_info_widget)
  2. JourneyInfoWidget journeyInfoWidget;
  3.  
  4. ....................
  5. if (journeyInfoWidget.getMapView() != null) {
  6.  
  7. mapNavigationController.setMapView(journeyInfoWidget.getMapView());
  8. mapNavigationController.setDisplayRouteFromCurrentLocation(true);
  9.  
  10. GeoPointAndDrawable start = new GeoPointAndDrawable(
  11. R.drawable.customer_pointer,
  12. orderRequest.getStartLocation().getLatLng());
  13.  
  14. if ((orderRequest.getBookingType() == null || orderRequest.getBookingType().equals(com.taxipixi.Constants.POINT_TO_POINT)) &&
  15. orderRequest.getEndLocation() != null) {
  16. GeoPointAndDrawable end = new GeoPointAndDrawable(
  17. R.drawable.flag_end,
  18. orderRequest.getEndLocation().getLatLng());
  19.  
  20. mapNavigationController.resetPoints(start, end);
  21. } else {
  22. mapNavigationController.resetPoints(start);
  23. // journeyInfoWidget.dropOff.setVisibility(View.GONE);
  24. }
  25. }
  26.  
  27. .......................
Add Comment
Please, Sign In to add comment