aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-03-06 11:20:45 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2015-03-06 11:20:45 +0100
commit4013a36276004e28e25e83684fc3f6b4690d2748 (patch)
treebd477893b6ec9d30a62a156099fe05cd95cd5eb2 /OpenKeychain/src/main/java/org/sufficientlysecure
parentdef44921073f1d33eebf3030b70a4b329dc10e8e (diff)
downloadopen-keychain-4013a36276004e28e25e83684fc3f6b4690d2748.tar.gz
open-keychain-4013a36276004e28e25e83684fc3f6b4690d2748.tar.bz2
open-keychain-4013a36276004e28e25e83684fc3f6b4690d2748.zip
Remove dublicate email check
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/ContactHelper.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/ContactHelper.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/ContactHelper.java
index 1de5fca30..08c7c02fb 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/ContactHelper.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/ContactHelper.java
@@ -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;
}