Fixed identity selection changing, refactoring

This commit is contained in:
M66B
2019-01-25 15:41:00 +00:00
parent ad9c675fa4
commit 8306b0eb50
5 changed files with 39 additions and 22 deletions

View File

@@ -21,4 +21,14 @@ package eu.faircode.email;
public class TupleIdentityEx extends EntityIdentity {
public String accountName;
@Override
public boolean equals(Object obj) {
if (obj instanceof TupleIdentityEx) {
TupleIdentityEx other = (TupleIdentityEx) obj;
return (super.equals(obj) &&
(this.accountName == null ? other.accountName == null : accountName.equals(other.accountName)));
} else
return false;
}
}