Fixed widget update in some circumstances

This commit is contained in:
M66B
2019-11-24 12:33:50 +01:00
parent 52d2ad5364
commit 2e15a0c72d
3 changed files with 25 additions and 9 deletions

View File

@@ -22,6 +22,7 @@ package eu.faircode.email;
import androidx.annotation.Nullable;
public class TupleMessageWidgetCount {
public long folder;
public int total;
public int seen;
public int flagged;
@@ -30,7 +31,8 @@ public class TupleMessageWidgetCount {
public boolean equals(@Nullable Object obj) {
if (obj instanceof TupleMessageWidgetCount) {
TupleMessageWidgetCount other = (TupleMessageWidgetCount) obj;
return (this.total == other.total &&
return (this.folder == other.folder &&
this.total == other.total &&
this.seen == other.seen &&
this.flagged == other.flagged);
} else