aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/GetKeyResult.java
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2016-01-19 16:18:06 +0100
committerVincent Breitmoser <valodim@mugenguild.com>2016-02-01 15:24:48 +0100
commit48dd3d09e6d78f965796bea5ad400e8e77f39d0d (patch)
treea3b3e102b19af87ad93ed94bf4145ed889ef5b65 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/GetKeyResult.java
parent10ce81bd6059d3d7b4de109f4ff801ad2ae92557 (diff)
downloadopen-keychain-48dd3d09e6d78f965796bea5ad400e8e77f39d0d.tar.gz
open-keychain-48dd3d09e6d78f965796bea5ad400e8e77f39d0d.tar.bz2
open-keychain-48dd3d09e6d78f965796bea5ad400e8e77f39d0d.zip
import: handle FileNotFoundException (fixes #1688)
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/GetKeyResult.java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/GetKeyResult.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/GetKeyResult.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/GetKeyResult.java
index bdc4d9a47..76ffaff4a 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/GetKeyResult.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/GetKeyResult.java
@@ -44,12 +44,13 @@ public class GetKeyResult extends InputPendingResult {
super(log, requiredInput, cryptoInputParcel);
}
- public static final int RESULT_ERROR_NO_VALID_KEYS = RESULT_ERROR + 8;
- public static final int RESULT_ERROR_NO_PGP_PARTS = RESULT_ERROR + 16;
- public static final int RESULT_ERROR_QUERY_TOO_SHORT = RESULT_ERROR + 32;
- public static final int RESULT_ERROR_TOO_MANY_RESPONSES = RESULT_ERROR + 64;
- public static final int RESULT_ERROR_TOO_SHORT_OR_TOO_MANY_RESPONSES = RESULT_ERROR + 128;
- public static final int RESULT_ERROR_QUERY_FAILED = RESULT_ERROR + 256;
+ public static final int RESULT_ERROR_NO_VALID_KEYS = RESULT_ERROR + (1<<4);
+ public static final int RESULT_ERROR_NO_PGP_PARTS = RESULT_ERROR + (2<<4);
+ public static final int RESULT_ERROR_QUERY_TOO_SHORT = RESULT_ERROR + (3<<4);
+ public static final int RESULT_ERROR_TOO_MANY_RESPONSES = RESULT_ERROR + (4<<4);
+ public static final int RESULT_ERROR_TOO_SHORT_OR_TOO_MANY_RESPONSES = RESULT_ERROR + (5<<4);
+ public static final int RESULT_ERROR_QUERY_FAILED = RESULT_ERROR + (6<<4);
+ public static final int RESULT_ERROR_FILE_NOT_FOUND = RESULT_ERROR + (7<<4);
public GetKeyResult(Parcel source) {
super(source);