aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-08-10 22:13:48 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2015-08-10 22:13:48 +0200
commit3a536c15113203f4d275b939fc5b361360dd324d (patch)
tree04a500023e8b8c8bc3e18613d8f873c609bc5d82
parent68cec0197f3679c9dc773719d90013b2bb3f5b63 (diff)
downloadopenpgp-api-3a536c15113203f4d275b939fc5b361360dd324d.tar.gz
openpgp-api-3a536c15113203f4d275b939fc5b361360dd324d.tar.bz2
openpgp-api-3a536c15113203f4d275b939fc5b361360dd324d.zip
Fix REQUEST_CODE_DECRYPT_AND_VERIFY_DETACHED and REQUEST_CODE_DETACHED_SIGN
-rw-r--r--example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java b/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java
index 573e34d..1c3ab1e 100644
--- a/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java
+++ b/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java
@@ -242,7 +242,8 @@ public class OpenPgpApiActivity extends Activity {
}
switch (requestCode) {
- case REQUEST_CODE_DECRYPT_AND_VERIFY: {
+ case REQUEST_CODE_DECRYPT_AND_VERIFY:
+ case REQUEST_CODE_DECRYPT_AND_VERIFY_DETACHED: {
// RESULT_SIGNATURE and RESULT_DECRYPTION are never null!
OpenPgpSignatureResult signatureResult
@@ -254,7 +255,7 @@ public class OpenPgpApiActivity extends Activity {
break;
}
- case REQUEST_CODE_DECRYPT_AND_VERIFY_DETACHED: {
+ case REQUEST_CODE_DETACHED_SIGN: {
byte[] detachedSig
= result.getByteArrayExtra(OpenPgpApi.RESULT_DETACHED_SIGNATURE);
Log.d(OpenPgpApi.TAG, "RESULT_DETACHED_SIGNATURE: " + detachedSig.length