libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/instruction/InstructionView.java
private boolean newStep(RouteProgress routeProgress) {
    boolean newStep = currentStep == null || !currentStep.equals(routeProgress.currentLegProgress().currentStep());
    currentStep = routeProgress.currentLegProgress().currentStep();
    return newStep;
  }
/**
   * Looks to see if we have a new step.
   *
   * @param routeProgress provides updated step information
   * @return true if new step, false if not
   */
Looks to see if we have a new step.
@param routeProgress provides updated step information
@return true if new step, false if not
Looks to see if we have a new step . @param routeProgress provides updated step information @return true if new step false if not
private boolean newStep(RouteProgress routeProgress) {
    boolean newStep = currentStep == null || !currentStep.equals(routeProgress.currentLegProgress().currentStep());
    currentStep = routeProgress.currentLegProgress().currentStep();
    return newStep;
  }
private boolean newStep ( RouteProgress routeProgress ) { boolean newStep = currentStep == null || ! currentStep . equals ( routeProgress . currentLegProgress ( ) . currentStep ( ) ) ; currentStep = routeProgress . currentLegProgress ( ) . currentStep ( ) ; return newStep ; }
Looks to see if we have a new step.
Looks to see if we have a new step .