Fixed another crash if contact name is empty
This commit is contained in:
parent
d399aaeda6
commit
ac73829739
1 changed files with 4 additions and 1 deletions
|
@ -481,7 +481,10 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
||||||
separator.setVisibility(View.GONE);
|
separator.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
separator.setVisibility(View.VISIBLE);
|
separator.setVisibility(View.VISIBLE);
|
||||||
separatorText.setText(String.valueOf(contact.getFullName().charAt(0)));
|
String fullName = contact.getFullName();
|
||||||
|
if (fullName != null && !fullName.isEmpty()) {
|
||||||
|
separatorText.setText(String.valueOf(fullName.charAt(0)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageView icon = (ImageView) view.findViewById(R.id.contact_picture);
|
ImageView icon = (ImageView) view.findViewById(R.id.contact_picture);
|
||||||
|
|
Loading…
Reference in a new issue