diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-08-10 22:13:48 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-08-10 22:13:48 +0200 |
commit | 3a536c15113203f4d275b939fc5b361360dd324d (patch) | |
tree | 04a500023e8b8c8bc3e18613d8f873c609bc5d82 | |
parent | 68cec0197f3679c9dc773719d90013b2bb3f5b63 (diff) | |
download | openpgp-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.java | 5 |
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 |