Simplification

pull/184/head
M66B 4 years ago
parent 9261e0802b
commit 6314e66c03

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

@ -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) {

Loading…
Cancel
Save