Simplification

This commit is contained in:
M66B 2020-08-20 20:42:17 +02:00
parent 9261e0802b
commit 6314e66c03
2 changed files with 1 additions and 12 deletions

View File

@ -512,7 +512,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) {
TupleAccountEx f1 = prev.get(oldItemPosition);
TupleAccountEx f2 = next.get(newItemPosition);
return f1.uiEquals(f2);
return f1.equals(f2);
}
}

View File

@ -24,17 +24,6 @@ public class TupleAccountEx extends EntityAccount {
public int identities; // synchronizing
public boolean drafts;
public boolean uiEquals(Object obj) {
if (obj instanceof TupleAccountEx) {
TupleAccountEx other = (TupleAccountEx) obj;
return (super.equals(obj) &&
this.unseen == other.unseen &&
this.identities == other.identities &&
this.drafts == other.drafts);
} else
return false;
}
@Override
public boolean equals(Object obj) {
if (obj instanceof TupleAccountEx) {