Fix FC depending on contact(s)
This commit is contained in:
parent
fecf74ea74
commit
27c9b4bf7d
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
|
|||
|
||||
TextView sipUri = (TextView) view.findViewById(R.id.sipUri);
|
||||
|
||||
if (getResources().getBoolean(R.bool.only_display_username_if_unknown) && LinphoneUtils.isSipAddress(address.getDisplayName())) {
|
||||
if (getResources().getBoolean(R.bool.only_display_username_if_unknown) && address.getDisplayName() != null && LinphoneUtils.isSipAddress(address.getDisplayName())) {
|
||||
address.setDisplayName(LinphoneUtils.getUsernameFromAddress(address.getDisplayName()));
|
||||
} else if (getResources().getBoolean(R.bool.only_display_username_if_unknown) && LinphoneUtils.isSipAddress(contact)) {
|
||||
contact = LinphoneUtils.getUsernameFromAddress(contact);
|
||||
|
|
Loading…
Reference in a new issue