Contact: store last used identity

This commit is contained in:
M66B
2022-04-18 23:12:24 +02:00
parent 7764b6450f
commit 0431c7c27c
10 changed files with 2776 additions and 12 deletions

View File

@@ -19,15 +19,19 @@ package eu.faircode.email;
Copyright 2018-2022 by Marcel Bokhorst (M66B)
*/
import java.util.Objects;
public class TupleContactEx extends EntityContact {
public String accountName;
public String identityEmail;
@Override
public boolean equals(Object obj) {
if (obj instanceof TupleContactEx) {
TupleContactEx other = (TupleContactEx) obj;
return (super.equals(obj) &&
accountName.equals(other.accountName));
accountName.equals(other.accountName) &&
Objects.equals(this.identityEmail, other.identityEmail));
} else
return false;
}