libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/instruction/InstructionView.java
private void updateTextInstruction(InstructionModel model) {
    if (model.getPrimaryBannerText() != null) {
      InstructionLoader.getInstance().loadInstruction(upcomingPrimaryText, model.getPrimaryBannerText());
    }
    if (model.getSecondaryBannerText() != null) {
      if (upcomingSecondaryText.getVisibility() == GONE) {
        upcomingSecondaryText.setVisibility(VISIBLE);
        upcomingPrimaryText.setMaxLines(1);
        adjustBannerTextVerticalBias(0.65f);
      }
      InstructionLoader.getInstance().loadInstruction(upcomingSecondaryText, model.getSecondaryBannerText());
    } else {
      upcomingPrimaryText.setMaxLines(2);
      upcomingSecondaryText.setVisibility(GONE);
      adjustBannerTextVerticalBias(0.5f);
    }
  }
/**
   * Looks to see if we have a new instruction text.
   * Sets new instruction text if found.
   *
   * @param model provides instruction text
   */
Looks to see if we have a new instruction text.
Sets new instruction text if found.

@param model provides instruction text
Looks to see if we have a new instruction text . Sets new instruction text if found . @param model provides instruction text
private void updateTextInstruction(InstructionModel model) {
    if (model.getPrimaryBannerText() != null) {
      InstructionLoader.getInstance().loadInstruction(upcomingPrimaryText, model.getPrimaryBannerText());
    }
    if (model.getSecondaryBannerText() != null) {
      if (upcomingSecondaryText.getVisibility() == GONE) {
        upcomingSecondaryText.setVisibility(VISIBLE);
        upcomingPrimaryText.setMaxLines(1);
        adjustBannerTextVerticalBias(0.65f);
      }
      InstructionLoader.getInstance().loadInstruction(upcomingSecondaryText, model.getSecondaryBannerText());
    } else {
      upcomingPrimaryText.setMaxLines(2);
      upcomingSecondaryText.setVisibility(GONE);
      adjustBannerTextVerticalBias(0.5f);
    }
  }
private void updateTextInstruction ( InstructionModel model ) { if ( model . getPrimaryBannerText ( ) != null ) { InstructionLoader . getInstance ( ) . loadInstruction ( upcomingPrimaryText , model . getPrimaryBannerText ( ) ) ; } if ( model . getSecondaryBannerText ( ) != null ) { if ( upcomingSecondaryText . getVisibility ( ) == GONE ) { upcomingSecondaryText . setVisibility ( VISIBLE ) ; upcomingPrimaryText . setMaxLines ( 1 ) ; adjustBannerTextVerticalBias ( 0.65f ) ; } InstructionLoader . getInstance ( ) . loadInstruction ( upcomingSecondaryText , model . getSecondaryBannerText ( ) ) ; } else { upcomingPrimaryText . setMaxLines ( 2 ) ; upcomingSecondaryText . setVisibility ( GONE ) ; adjustBannerTextVerticalBias ( 0.5f ) ; } }
Looks to see if we have a new instruction text.
Looks to see if we have a new instruction text .