fix signature passing and verify in demo

This commit is contained in:
Dominik Schürmann
2014-02-24 01:24:46 +01:00
parent 16284f0cfd
commit c7c45a80fa
2 changed files with 7 additions and 6 deletions

View File

@@ -185,7 +185,7 @@ public class OpenPgpProviderActivity extends Activity {
Log.e(Constants.TAG, "UnsupportedEncodingException", e);
}
if (result.getBoolean(OpenPgpConstants.RESULT_SIGNATURE, false)) {
if (result.containsKey(OpenPgpConstants.RESULT_SIGNATURE)) {
OpenPgpSignatureResult sigResult
= result.getParcelable(OpenPgpConstants.RESULT_SIGNATURE);
handleSignature(sigResult);