mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-12 12:35:04 -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:
parent
1b7af9270e
commit
3799ecfb21
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user