Do not sort contacts only by first letter anymore
This commit is contained in:
parent
064ffd23e5
commit
d930b5533a
1 changed files with 5 additions and 5 deletions
|
@ -87,11 +87,11 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(LinphoneContact contact) {
|
public int compareTo(LinphoneContact contact) {
|
||||||
String fullName = getFullName();
|
String fullName = getFullName() != null ? getFullName() : "";
|
||||||
String contactFullName = contact.getFullName();
|
String contactFullName = contact.getFullName() != null ? contact.getFullName() : "";
|
||||||
String firstLetter = fullName == null || fullName.isEmpty() ? "" : fullName.substring(0, 1).toUpperCase(Locale.getDefault());
|
/*String firstLetter = fullName == null || fullName.isEmpty() ? "" : fullName.substring(0, 1).toUpperCase(Locale.getDefault());
|
||||||
String contactfirstLetter = contactFullName == null || contactFullName.isEmpty() ? "" : contactFullName.substring(0, 1).toUpperCase(Locale.getDefault());
|
String contactfirstLetter = contactFullName == null || contactFullName.isEmpty() ? "" : contactFullName.substring(0, 1).toUpperCase(Locale.getDefault());*/
|
||||||
return firstLetter.compareTo(contactfirstLetter);
|
return fullName.compareTo(contactFullName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFullName(String name) {
|
public void setFullName(String name) {
|
||||||
|
|
Loading…
Reference in a new issue