mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-13 13:05:03 -05:00
0fac8e999d
Remove home-grown date formatting, and replace it by usage of the DateUtils class which is present since API level 3.
46 lines
1.1 KiB
Java
46 lines
1.1 KiB
Java
package com.fsck.k9.activity;
|
|
|
|
import java.util.Date;
|
|
import com.fsck.k9.mail.Message;
|
|
|
|
public class MessageInfoHolder {
|
|
public String date;
|
|
public Date compareDate;
|
|
public Date compareArrival;
|
|
public String compareSubject;
|
|
public CharSequence sender;
|
|
public String senderAddress;
|
|
public String compareCounterparty;
|
|
public String[] recipients;
|
|
public String uid;
|
|
public boolean read;
|
|
public boolean answered;
|
|
public boolean forwarded;
|
|
public boolean flagged;
|
|
public boolean dirty;
|
|
public Message message;
|
|
public FolderInfoHolder folder;
|
|
public boolean selected;
|
|
public String account;
|
|
public String uri;
|
|
|
|
// Empty constructor for comparison
|
|
public MessageInfoHolder() {
|
|
this.selected = false;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (o instanceof MessageInfoHolder == false) {
|
|
return false;
|
|
}
|
|
MessageInfoHolder other = (MessageInfoHolder)o;
|
|
return message.equals(other.message);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return uid.hashCode();
|
|
}
|
|
}
|