aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org
diff options
context:
space:
mode:
authorAlex Fong <alexfongg@gmail.com>2016-05-07 08:44:59 +0800
committerAlex Fong <alexfongg@gmail.com>2016-05-07 08:44:59 +0800
commit2f33fe31185f1c12c4688f49c7374a4164fc7d58 (patch)
tree6b79d3f2e5b77eddfb54d8d6508c83ab0c50cdf9 /OpenKeychain/src/main/java/org
parent5e9de4447c95cd9ed332ec012b4d73ad7a8ef8b2 (diff)
downloadopen-keychain-2f33fe31185f1c12c4688f49c7374a4164fc7d58.tar.gz
open-keychain-2f33fe31185f1c12c4688f49c7374a4164fc7d58.tar.bz2
open-keychain-2f33fe31185f1c12c4688f49c7374a4164fc7d58.zip
A simple fix to clear the list of detected keys when parsing key file gives an error.
Diffstat (limited to 'OpenKeychain/src/main/java/org')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysListLoader.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysListLoader.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysListLoader.java
index 0201318e8..df24e9877 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysListLoader.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysListLoader.java
@@ -141,6 +141,7 @@ public class ImportKeysListLoader
OperationResult.OperationLog log = new OperationResult.OperationLog();
log.add(OperationResult.LogType.MSG_GET_NO_VALID_KEYS, 0);
GetKeyResult getKeyResult = new GetKeyResult(GetKeyResult.RESULT_ERROR_NO_VALID_KEYS, log);
+ mData.clear();
mEntryListWrapper = new AsyncTaskResultWrapper<>(mData, getKeyResult);
}
}