mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Sort headers on the UI thread as the sorted list will be accessed there.
This commit is contained in:
@@ -147,12 +147,13 @@ implements DatabaseListener, OnClickListener, OnItemClickListener {
|
||||
});
|
||||
}
|
||||
|
||||
private void updateConversation(Collection<PrivateMessageHeader> headers) {
|
||||
final List<PrivateMessageHeader> sort =
|
||||
new ArrayList<PrivateMessageHeader>(headers);
|
||||
Collections.sort(sort, AscendingHeaderComparator.INSTANCE);
|
||||
private void updateConversation(
|
||||
final Collection<PrivateMessageHeader> headers) {
|
||||
runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
List<PrivateMessageHeader> sort =
|
||||
new ArrayList<PrivateMessageHeader>(headers);
|
||||
Collections.sort(sort, AscendingHeaderComparator.INSTANCE);
|
||||
int firstUnread = -1;
|
||||
adapter.clear();
|
||||
for(PrivateMessageHeader h : sort) {
|
||||
|
||||
Reference in New Issue
Block a user