Ejemplo n.º 1
0
 @Override
 public void onResume() {
   super.onResume();
   screenOrientation = DashLocationFragment.getScreenOrientation(getActivity());
   if (menu.displayDistanceDirection()) {
     getMapActivity().getMapViewTrackingUtilities().setContextMenu(menu);
   }
 }
Ejemplo n.º 2
0
  private void updateDistanceDirection() {
    TextView distanceText = (TextView) view.findViewById(R.id.distance);
    ImageView direction = (ImageView) view.findViewById(R.id.direction);

    float myHeading = menu.getHeading() == null ? 0f : menu.getHeading();
    DashLocationFragment.updateLocationView(
        false,
        menu.getMyLocation(),
        myHeading,
        direction,
        distanceText,
        menu.getLatLon().getLatitude(),
        menu.getLatLon().getLongitude(),
        screenOrientation,
        getMyApplication(),
        getActivity());
  }