mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Revert the clever runonuithread hack from the previous commit, as it
leads to concurrent modification exceptions. "oops" :/
This commit is contained in:
parent
9cccd8d411
commit
a1496bd839
@ -2058,12 +2058,8 @@ public class MessageList
|
|||||||
addOrUpdateMessages(account, folder, messages, verifyAgainstSearch);
|
addOrUpdateMessages(account, folder, messages, verifyAgainstSearch);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addOrUpdateMessages(final Account account, final String folder, final List<Message> messages, final boolean verifyAgainstSearch)
|
private void addOrUpdateMessages(Account account, String folder, List<Message> messages, boolean verifyAgainstSearch)
|
||||||
{
|
{
|
||||||
runOnUiThread(new Runnable()
|
|
||||||
{
|
|
||||||
public void run()
|
|
||||||
{
|
|
||||||
boolean needsSort = false;
|
boolean needsSort = false;
|
||||||
final List<MessageInfoHolder> messagesToAdd = new ArrayList<MessageInfoHolder>();
|
final List<MessageInfoHolder> messagesToAdd = new ArrayList<MessageInfoHolder>();
|
||||||
List<MessageInfoHolder> messagesToRemove = new ArrayList<MessageInfoHolder>();
|
List<MessageInfoHolder> messagesToRemove = new ArrayList<MessageInfoHolder>();
|
||||||
@ -2137,10 +2133,6 @@ public class MessageList
|
|||||||
mHandler.sortMessages();
|
mHandler.sortMessages();
|
||||||
mHandler.resetUnreadCount();
|
mHandler.resetUnreadCount();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public MessageInfoHolder getMessage(Message message)
|
public MessageInfoHolder getMessage(Message message)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user