libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/instruction/InstructionView.java
private boolean newDistanceText(InstructionModel model) {
    return !upcomingDistanceText.getText().toString().isEmpty()
      && !TextUtils.isEmpty(model.getStepResources().getStepDistanceRemaining())
      && !upcomingDistanceText.getText().toString()
      .contentEquals(model.getStepResources().getStepDistanceRemaining().toString());
  }
/**
   * Looks to see if we have a new distance text.
   *
   * @param model provides distance text
   */
Looks to see if we have a new distance text.
@param model provides distance text
Looks to see if we have a new distance text . @param model provides distance text
private boolean newDistanceText(InstructionModel model) {
    return !upcomingDistanceText.getText().toString().isEmpty()
      && !TextUtils.isEmpty(model.getStepResources().getStepDistanceRemaining())
      && !upcomingDistanceText.getText().toString()
      .contentEquals(model.getStepResources().getStepDistanceRemaining().toString());
  }
private boolean newDistanceText ( InstructionModel model ) { return ! upcomingDistanceText . getText ( ) . toString ( ) . isEmpty ( ) && ! TextUtils . isEmpty ( model . getStepResources ( ) . getStepDistanceRemaining ( ) ) && ! upcomingDistanceText . getText ( ) . toString ( ) . contentEquals ( model . getStepResources ( ) . getStepDistanceRemaining ( ) . toString ( ) ) ; }
Looks to see if we have a new distance text.
Looks to see if we have a new distance text .