aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-08-10 22:08:26 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2015-08-10 22:08:26 +0200
commit8ce4a9a252fd994d6d5c3166d52f8af4d4ac9915 (patch)
tree05ce191ff9895ab02afe88bd8680f3d694ceff95 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java
parent0314d3697911a1e08b96607e00e2c75c271b2b36 (diff)
downloadopen-keychain-8ce4a9a252fd994d6d5c3166d52f8af4d4ac9915.tar.gz
open-keychain-8ce4a9a252fd994d6d5c3166d52f8af4d4ac9915.tar.bz2
open-keychain-8ce4a9a252fd994d6d5c3166d52f8af4d4ac9915.zip
Support API version 8
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java
index ff49a2991..86c4f3597 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java
@@ -790,12 +790,13 @@ public class OpenPgpService extends RemoteService {
&& data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) != 4
&& data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) != 5
&& data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) != 6
- && data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) != 7) {
+ && data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) != 7
+ && data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) != 8) {
Intent result = new Intent();
OpenPgpError error = new OpenPgpError
(OpenPgpError.INCOMPATIBLE_API_VERSIONS, "Incompatible API versions!\n"
+ "used API version: " + data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) + "\n"
- + "supported API versions: 3-7");
+ + "supported API versions: 3-8");
result.putExtra(OpenPgpApi.RESULT_ERROR, error);
result.putExtra(OpenPgpApi.RESULT_CODE, OpenPgpApi.RESULT_CODE_ERROR);
return result;