Do not compute display name using first and last name if display name exists
This commit is contained in:
parent
8b5a52a8b1
commit
1e550b5a74
1 changed files with 8 additions and 6 deletions
|
@ -126,12 +126,14 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
|
|||
|
||||
firstName = fn;
|
||||
lastName = ln;
|
||||
if (firstName != null && lastName != null && firstName.length() > 0 && lastName.length() > 0) {
|
||||
fullName = firstName + " " + lastName;
|
||||
} else if (firstName != null && firstName.length() > 0) {
|
||||
fullName = firstName;
|
||||
} else if (lastName != null && lastName.length() > 0) {
|
||||
fullName = lastName;
|
||||
if (fullName == null) {
|
||||
if (firstName != null && lastName != null && firstName.length() > 0 && lastName.length() > 0) {
|
||||
fullName = firstName + " " + lastName;
|
||||
} else if (firstName != null && firstName.length() > 0) {
|
||||
fullName = firstName;
|
||||
} else if (lastName != null && lastName.length() > 0) {
|
||||
fullName = lastName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue