mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 09:38:52 -05:00
Issue 530
This new method will be useful later.
This commit is contained in:
parent
f6c6012e11
commit
280ed0dadd
@ -599,15 +599,20 @@ public class Account implements Serializable {
|
||||
|
||||
public boolean isAnIdentity(Address addr)
|
||||
{
|
||||
for (Identity identity : identities)
|
||||
{
|
||||
String email = identity.getEmail();
|
||||
if (email != null && email.equalsIgnoreCase(addr.getAddress()))
|
||||
{
|
||||
return true;
|
||||
return findIdentity(addr) != null;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
public Identity findIdentity(Address addr)
|
||||
{
|
||||
for (Identity identity : identities)
|
||||
{
|
||||
String email = identity.getEmail();
|
||||
if (email != null && email.equalsIgnoreCase(addr.getAddress()))
|
||||
{
|
||||
return identity;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getDisplayCount() {
|
||||
|
Loading…
Reference in New Issue
Block a user