1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-14 21:45:14 -05:00

Check message uids first when comparing messages. message uids are less likely to be the same than folders, so it's a slight optimization

This commit is contained in:
Jesse Vincent 2012-09-12 21:56:17 -05:00
parent 1b7af9270e
commit 3799ecfb21

View File

@ -52,9 +52,9 @@ public abstract class Message implements Part, Body {
return false; return false;
} }
Message other = (Message)o; Message other = (Message)o;
return (mFolder.getName().equals(other.getFolder().getName()) return (mUid.equals(other.getUid())
&& mFolder.getAccount().getUuid().equals(other.getFolder().getAccount().getUuid()) && mFolder.getName().equals(other.getFolder().getName())
&& mUid.equals(other.getUid())); && mFolder.getAccount().getUuid().equals(other.getFolder().getAccount().getUuid()));
} }
@Override @Override