diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-02-21 15:49:08 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-02-21 15:49:08 +0100 |
commit | f6da3e80e60d4d6e2b478e23f761626acda808fe (patch) | |
tree | 3cb1ecc02e84fcf8b2bf93d2666e2da427a3f124 /OpenPGP-Keychain-API/example-app/src | |
parent | c2013c9ca88e44a8a6a1eb110a331eba9811a1f1 (diff) | |
download | open-keychain-f6da3e80e60d4d6e2b478e23f761626acda808fe.tar.gz open-keychain-f6da3e80e60d4d6e2b478e23f761626acda808fe.tar.bz2 open-keychain-f6da3e80e60d4d6e2b478e23f761626acda808fe.zip |
api example: fix crash when no signature is present
Diffstat (limited to 'OpenPGP-Keychain-API/example-app/src')
-rw-r--r-- | OpenPGP-Keychain-API/example-app/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenPGP-Keychain-API/example-app/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java b/OpenPGP-Keychain-API/example-app/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java index 2f7f085c2..21eca36d6 100644 --- a/OpenPGP-Keychain-API/example-app/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java +++ b/OpenPGP-Keychain-API/example-app/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java @@ -185,7 +185,7 @@ public class OpenPgpProviderActivity extends Activity { Log.e(Constants.TAG, "UnsupportedEncodingException", e); } - if (result.containsKey(OpenPgpConstants.RESULT_SIGNATURE)) { + if (result.getBoolean(OpenPgpConstants.RESULT_SIGNATURE, false)) { OpenPgpSignatureResult sigResult = result.getParcelable(OpenPgpConstants.RESULT_SIGNATURE); handleSignature(sigResult); |