libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationEngine.java
private void advanceStepIndex(DirectionsRoute directionsRoute, RingBuffer recentDistances) {
    // First increase the indices and then update the majority of information for the new routeProgress
    indices = increaseIndex(previousRouteProgress, indices);

    // First increase the indices and then update the majority of information for the new
    stepPoints = decodeStepPoints(directionsRoute, indices.legIndex(), indices.stepIndex());

    // Clear any recent distances from the maneuver (maneuver has now changed)
    if (!recentDistances.isEmpty()) {
      recentDistances.clear();
    }
  }
/**
   * Increases the step index in {@link NavigationIndices} by 1.
   * <p>
   * Decodes the step points for the new step and clears the distances from
   * maneuver stack, as the maneuver has now changed.
   *
   * @param directionsRoute to get the next {@link LegStep#geometry()}
   * @param recentDistances should be cleared as a result of advancing the index
   */
Increases the step index in  NavigationIndices by 1.

Decodes the step points for the new step and clears the distances from
maneuver stack, as the maneuver has now changed.

@param directionsRoute to get the next  LegStep#geometry()
@param recentDistances should be cleared as a result of advancing the index
Increases the step index in NavigationIndices by 1 . Decodes the step points for the new step and clears the distances from maneuver stack as the maneuver has now changed . @param directionsRoute to get the next LegStep#geometry () @param recentDistances should be cleared as a result of advancing the index
private void advanceStepIndex(DirectionsRoute directionsRoute, RingBuffer recentDistances) {
    indices = increaseIndex(previousRouteProgress, indices);
    stepPoints = decodeStepPoints(directionsRoute, indices.legIndex(), indices.stepIndex());
    if (!recentDistances.isEmpty()) {
      recentDistances.clear();
    }
  }
private void advanceStepIndex ( DirectionsRoute directionsRoute , RingBuffer recentDistances ) { indices = increaseIndex ( previousRouteProgress , indices ) ; stepPoints = decodeStepPoints ( directionsRoute , indices . legIndex ( ) , indices . stepIndex ( ) ) ; if ( ! recentDistances . isEmpty ( ) ) { recentDistances . clear ( ) ; } }
Increases the step index in {@link NavigationIndices} by 1.
Increases the step index in { @link NavigationIndices } by 1 .
// First increase the indices and then update the majority of information for the new routeProgress // First increase the indices and then update the majority of information for the new // Clear any recent distances from the maneuver (maneuver has now changed)