mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Fixed/simplified widget update
This commit is contained in:
@@ -19,29 +19,8 @@ package eu.faircode.email;
|
||||
Copyright 2018-2019 by Marcel Bokhorst (M66B)
|
||||
*/
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class TupleMessageWidget extends EntityMessage {
|
||||
public String accountName;
|
||||
public boolean folderUnified;
|
||||
public int unseen;
|
||||
public int unflagged;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof TupleMessageWidget) {
|
||||
TupleMessageWidget other = (TupleMessageWidget) obj;
|
||||
return (this.id.equals(other.id) &&
|
||||
this.account.equals(other.account) &&
|
||||
Objects.equals(this.accountName, other.accountName) &&
|
||||
this.folder.equals(other.folder) &&
|
||||
this.folderUnified == other.folderUnified &&
|
||||
MessageHelper.equal(this.from, other.from) &&
|
||||
this.received.equals(other.received) &&
|
||||
Objects.equals(this.subject, other.subject) &&
|
||||
this.unseen == other.unseen &&
|
||||
this.unflagged == other.unflagged);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user