1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -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;
}
Message other = (Message)o;
return (mFolder.getName().equals(other.getFolder().getName())
&& mFolder.getAccount().getUuid().equals(other.getFolder().getAccount().getUuid())
&& mUid.equals(other.getUid()));
return (mUid.equals(other.getUid())
&& mFolder.getName().equals(other.getFolder().getName())
&& mFolder.getAccount().getUuid().equals(other.getFolder().getAccount().getUuid()));
}
@Override