diff --git a/src/android/org/linphone/contacts/LinphoneContact.java b/src/android/org/linphone/contacts/LinphoneContact.java index 6cb6b5720..353ec689f 100644 --- a/src/android/org/linphone/contacts/LinphoneContact.java +++ b/src/android/org/linphone/contacts/LinphoneContact.java @@ -126,12 +126,14 @@ public class LinphoneContact implements Serializable, Comparable 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; + } } }