diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-04-14 01:19:05 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-04-14 01:19:05 +0200 |
commit | 4a2c3385d652cfc54f0d5483c602ea3dd7c36cc5 (patch) | |
tree | 19e4781d45429339c3ebcc2290839d8629814ad0 | |
parent | 13ffd2038d56d90ffc583663a98c378ee9d9aa00 (diff) | |
download | open-keychain-4a2c3385d652cfc54f0d5483c602ea3dd7c36cc5.tar.gz open-keychain-4a2c3385d652cfc54f0d5483c602ea3dd7c36cc5.tar.bz2 open-keychain-4a2c3385d652cfc54f0d5483c602ea3dd7c36cc5.zip |
Fix SIGNATURE_SUCCESS_CERTIFIED
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerify.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerify.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerify.java index 7d5c1253c..f0d605f4e 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerify.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerify.java @@ -443,11 +443,11 @@ public class PgpDecryptVerify { // get certification status of this key Object data = mProviderHelper.getGenericData( - KeychainContract.UserIds.buildUserIdsUri(Long.toString(masterKeyId)), + KeychainContract.KeyRings.buildUnifiedKeyRingUri(Long.toString(masterKeyId)), KeyRings.VERIFIED, ProviderHelper.FIELD_TYPE_INTEGER); - isSignatureKeyCertified = (Long) data > 0; + isSignatureKeyCertified = ((Long) data > 0); } else { // no key in our database -> return "unknown pub key" status including the first key id if (!sigList.isEmpty()) { @@ -639,11 +639,11 @@ public class PgpDecryptVerify { // get certification status of this key Object data = mProviderHelper.getGenericData( - KeychainContract.UserIds.buildUserIdsUri(Long.toString(masterKeyId)), + KeychainContract.KeyRings.buildUnifiedKeyRingUri(Long.toString(masterKeyId)), KeyRings.VERIFIED, ProviderHelper.FIELD_TYPE_INTEGER); - isSignatureKeyCertified = (Long) data > 0; + isSignatureKeyCertified = ((Long) data > 0); } else { // no key in our database -> return "unknown pub key" status including the first key id if (!sigList.isEmpty()) { |