1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Issue 530

This new method will be useful later.
This commit is contained in:
Daniel Applebaum 2009-07-24 05:12:17 +00:00
parent f6c6012e11
commit 280ed0dadd

View File

@ -598,16 +598,21 @@ public class Account implements Serializable {
}
public boolean isAnIdentity(Address addr)
{
return findIdentity(addr) != null;
}
public Identity findIdentity(Address addr)
{
for (Identity identity : identities)
{
String email = identity.getEmail();
if (email != null && email.equalsIgnoreCase(addr.getAddress()))
{
return true;
return identity;
}
}
return false;
return null;
}
public int getDisplayCount() {