mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -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,11 +2058,7 @@ public class MessageList
|
||||
addOrUpdateMessages(account, folder, messages, verifyAgainstSearch);
|
||||
}
|
||||
|
||||
private void addOrUpdateMessages(final Account account, final String folder, final List<Message> messages, final boolean verifyAgainstSearch)
|
||||
{
|
||||
runOnUiThread(new Runnable()
|
||||
{
|
||||
public void run()
|
||||
private void addOrUpdateMessages(Account account, String folder, List<Message> messages, boolean verifyAgainstSearch)
|
||||
{
|
||||
boolean needsSort = false;
|
||||
final List<MessageInfoHolder> messagesToAdd = new ArrayList<MessageInfoHolder>();
|
||||
@ -2138,10 +2134,6 @@ public class MessageList
|
||||
mHandler.resetUnreadCount();
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
public MessageInfoHolder getMessage(Message message)
|
||||
{
|
||||
return getMessage(message.makeMessageReference());
|
||||
|
Loading…
Reference in New Issue
Block a user