예제 #1
0
  @Override
  public void setSecondary(
      boolean show,
      String name,
      boolean nameIsNumber,
      String label,
      Drawable photo,
      boolean isConference,
      boolean isGeneric) {

    if (show) {
      if (isConference) {
        name = getConferenceString(isGeneric);
        photo = getConferencePhoto(isGeneric);
        nameIsNumber = false;
      }

      showAndInitializeSecondaryCallInfo();
      mSecondaryCallName.setText(name);

      int nameDirection = View.TEXT_DIRECTION_INHERIT;
      if (nameIsNumber) {
        nameDirection = View.TEXT_DIRECTION_LTR;
      }
      mSecondaryCallName.setTextDirection(nameDirection);

      setDrawableToImageView(mSecondaryPhoto, photo);
    } else {
      mSecondaryCallInfo.setVisibility(View.GONE);
    }
  }