1
0
Fork 1

Try to fix occasional sorting crashes

(cherry picked from commit 4e805c8ccc9c721c15571a1f098968dde96cf220)
This commit is contained in:
Stephen Paul Weber 2024-11-18 15:34:16 -05:00 committed by Arne
parent 44d9d9622f
commit 475c556918
2 changed files with 5 additions and 1 deletions

View file

@ -164,6 +164,10 @@ public class Bookmark extends Element implements ListItem {
return 1;
}
if (getDisplayName().equals(another.getDisplayName())) {
return getJid().compareTo(another.getJid());
}
return this.getDisplayName().compareToIgnoreCase(
another.getDisplayName());
}

View file

@ -1403,7 +1403,7 @@ public class StartConversationActivity extends XmppActivity
protected void filter(String needle) {
if (xmppConnectionServiceBound) {
this.filterContacts(needle);
synchronized(this.contacts) { this.filterContacts(needle); }
this.filterConferences(needle);
}
}