1
0
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:
Jesse Vincent 2010-08-31 04:29:56 +00:00
parent 9cccd8d411
commit a1496bd839

View File

@ -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());