(WIP) ImportKeys: Check if key is already present and verified

This commit is contained in:
Andrea Torlaschi
2016-08-28 23:48:08 +02:00
parent c3b1f2dec5
commit c389e543d0
3 changed files with 34 additions and 10 deletions

View File

@@ -173,7 +173,7 @@ public class CachedPublicKeyRing extends KeyRing {
Object data = mProviderHelper.getGenericData(mUri,
KeychainContract.KeyRings.VERIFIED,
ProviderHelper.FIELD_TYPE_INTEGER);
return (Integer) data;
return ((Long) data).intValue();
} catch(ProviderHelper.NotFoundException e) {
throw new PgpKeyNotFoundException(e);
}