Apply account color to nav folders

This commit is contained in:
M66B
2019-12-10 14:26:20 +01:00
parent aa87f3e9a3
commit b661e1fc1c
4 changed files with 24 additions and 15 deletions

View File

@@ -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;
}
}