@Override public void onResume() { super.onResume(); screenOrientation = DashLocationFragment.getScreenOrientation(getActivity()); if (menu.displayDistanceDirection()) { getMapActivity().getMapViewTrackingUtilities().setContextMenu(menu); } }
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()); }