Remove dublicate email check

This commit is contained in:
Dominik Schürmann 2015-03-06 11:20:45 +01:00
parent def4492107
commit 4013a36276

View File

@ -99,9 +99,7 @@ public class ContactHelper {
final Account[] accounts = AccountManager.get(context).getAccounts();
final Set<String> emailSet = new HashSet<>();
for (Account account : accounts) {
if (Patterns.EMAIL_ADDRESS.matcher(account.name).matches()) {
emailSet.add(account.name);
}
emailSet.add(account.name);
}
return emailSet;
}