forked from mirror/monocles_chat_clean
Try to fix occasional sorting crashes
(cherry picked from commit 4e805c8ccc9c721c15571a1f098968dde96cf220)
This commit is contained in:
parent
44d9d9622f
commit
475c556918
2 changed files with 5 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue