mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-27 19:36:21 +00:00
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);
|
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()));
|
address.setDisplayName(LinphoneUtils.getUsernameFromAddress(address.getDisplayName()));
|
||||||
} else if (getResources().getBoolean(R.bool.only_display_username_if_unknown) && LinphoneUtils.isSipAddress(contact)) {
|
} else if (getResources().getBoolean(R.bool.only_display_username_if_unknown) && LinphoneUtils.isSipAddress(contact)) {
|
||||||
contact = LinphoneUtils.getUsernameFromAddress(contact);
|
contact = LinphoneUtils.getUsernameFromAddress(contact);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue