/** * Populates the contact info fields based on the current contact information. */ private void updateContactInfo() { if (mContactUri != null) { setPhoto(mPhotoID, mPhotoUri, mContactUri, mNameOrNumber, mIsBusiness); } else { mContactPhoto.setVisibility(View.GONE); } mNameView.setText(mNameOrNumber); if (!TextUtils.isEmpty(mNumberLabel) && !TextUtils.isEmpty(mDisplayNumber)) { mNumberView.setVisibility(View.VISIBLE); mNumberView.setText(getString(R.string.call_subject_type_and_number, mNumberLabel, mDisplayNumber)); } else { mNumberView.setVisibility(View.GONE); mNumberView.setText(null); } }