libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/camera/NavigationCamera.java
public void resume(Location location) {
    if (location != null) {
      currentRouteInformation = buildRouteInformationFromLocation(location, null);
      animateCameraFromLocation(currentRouteInformation);
      navigation.addProgressChangeListener(NavigationCamera.this);
    } else {
      navigation.addProgressChangeListener(NavigationCamera.this);
    }
  }
/**
   * Called during rotation.
   * The camera should resume from the last location update, not the beginning of the route.
   * <p>
   * Creates a {@link CameraPosition} based on the {@link Location}.
   * If the route is null, the {@link ProgressChangeListener} is still added so future updates aren't ignored.
   *
   * @param location used to create the camera position
   * @since 0.6.0
   */
Called during rotation.
The camera should resume from the last location update, not the beginning of the route.

Creates a  CameraPosition based on the  Location.
If the route is null, the  ProgressChangeListener is still added so future updates aren't ignored.

@param location used to create the camera position
@since 0.6.0
Called during rotation . The camera should resume from the last location update not the beginning of the route . Creates a CameraPosition based on the Location . If the route is null the ProgressChangeListener is still added so future updates aren ' t ignored . @param location used to create the camera position @since 0 . 6 . 0
public void resume(Location location) {
    if (location != null) {
      currentRouteInformation = buildRouteInformationFromLocation(location, null);
      animateCameraFromLocation(currentRouteInformation);
      navigation.addProgressChangeListener(NavigationCamera.this);
    } else {
      navigation.addProgressChangeListener(NavigationCamera.this);
    }
  }
public void resume ( Location location ) { if ( location != null ) { currentRouteInformation = buildRouteInformationFromLocation ( location , null ) ; animateCameraFromLocation ( currentRouteInformation ) ; navigation . addProgressChangeListener ( NavigationCamera . this ) ; } else { navigation . addProgressChangeListener ( NavigationCamera . this ) ; } }
Called during rotation.
Called during rotation .