1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Revert "For the common case of "getMessage" where we actually have the object in"

This doesn't work on initial sync, since the comparisons fail and you're
left with duplicates in the displayed mailbox
This reverts commit fa1c88bec348d0132acc60a320626bf0ca1170ec.
This commit is contained in:
Jesse Vincent 2010-10-16 08:27:58 +00:00
parent 496677dad4
commit b2a08d969b

View File

@ -2396,19 +2396,7 @@ public class MessageList
}
public MessageInfoHolder getMessage(Message message)
{
synchronized (mAdapter.messages)
{
int index = mAdapter.messages.indexOf(message);
if (index == -1)
{
return null;
}
else
{
return mAdapter.messages.get(index);
}
}
return getMessage(message.makeMessageReference());
}
// XXX TODO - make this not use a for loop