diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-08-10 14:18:15 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-08-10 14:18:15 +0200 |
commit | ec76d56b82dbfabf30d14eff44b1f995b062c148 (patch) | |
tree | 2e0dee0150e3e260aed839648f9272cd077700df /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java | |
parent | acbb3edf9b3154d3e2e360aa7b8059ad9c9d77d2 (diff) | |
download | open-keychain-ec76d56b82dbfabf30d14eff44b1f995b062c148.tar.gz open-keychain-ec76d56b82dbfabf30d14eff44b1f995b062c148.tar.bz2 open-keychain-ec76d56b82dbfabf30d14eff44b1f995b062c148.zip |
Fix API backward compat
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.java | 8 |
1 files changed, 4 insertions, 4 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 e1d7c0bc9..ff49a2991 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java @@ -583,13 +583,13 @@ public class OpenPgpService extends RemoteService { } } - if (data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) < 6) { - // RESULT_INVALID_INSECURE has been added in version 6, fallback to RESULT_INVALID_SIGNATURE + if (data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) < 8) { + // RESULT_INVALID_INSECURE has been added in version 8, fallback to RESULT_INVALID_SIGNATURE if (signatureResult.getResult() == OpenPgpSignatureResult.RESULT_INVALID_INSECURE) { signatureResult.setResult(OpenPgpSignatureResult.RESULT_INVALID_SIGNATURE); } - // RESULT_NO_SIGNATURE has been added in version 6, before the signatureResult was null + // RESULT_NO_SIGNATURE has been added in version 8, before the signatureResult was null if (signatureResult.getResult() == OpenPgpSignatureResult.RESULT_NO_SIGNATURE) { result.putExtra(OpenPgpApi.RESULT_SIGNATURE, (Parcelable[]) null); } @@ -602,7 +602,7 @@ public class OpenPgpService extends RemoteService { } } - if (data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) >= 6) { + if (data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) >= 8) { OpenPgpDecryptionResult decryptionResult = pgpResult.getDecryptionResult(); if (decryptionResult != null) { result.putExtra(OpenPgpApi.RESULT_DECRYPTION, decryptionResult); |