mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Apply account color to nav folders
This commit is contained in:
@@ -25,10 +25,12 @@ import java.io.Serializable;
|
||||
import java.text.Collator;
|
||||
import java.util.Comparator;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
|
||||
public class TupleFolderNav extends EntityFolder implements Serializable {
|
||||
public Integer accountOrder;
|
||||
public String accountName;
|
||||
public Integer accountColor;
|
||||
public int messages;
|
||||
public int unseen;
|
||||
public int snoozed;
|
||||
@@ -76,4 +78,21 @@ public class TupleFolderNav extends EntityFolder implements Serializable {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof TupleFolderNav) {
|
||||
TupleFolderNav other = (TupleFolderNav) obj;
|
||||
return (super.equals(other) &&
|
||||
Objects.equals(this.accountOrder, other.accountOrder) &&
|
||||
Objects.equals(this.accountName, other.accountName) &&
|
||||
Objects.equals(this.accountColor, other.accountColor) &&
|
||||
this.messages == other.messages &&
|
||||
this.unseen == other.unseen &&
|
||||
this.snoozed == other.snoozed &&
|
||||
this.operations == other.operations &&
|
||||
this.executing == other.executing);
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user