mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-17 22:35:05 -05:00
Merge pull request #766 from mar-v-in/patch-1
Handle keys without expiry date right
This commit is contained in:
commit
2fa613ad62
@ -272,8 +272,8 @@ public class KeychainProvider extends ContentProvider {
|
|||||||
projectionMap.put(KeyRings.HAS_SIGN,
|
projectionMap.put(KeyRings.HAS_SIGN,
|
||||||
"kS." + Keys.KEY_ID + " AS " + KeyRings.HAS_SIGN);
|
"kS." + Keys.KEY_ID + " AS " + KeyRings.HAS_SIGN);
|
||||||
projectionMap.put(KeyRings.IS_EXPIRED,
|
projectionMap.put(KeyRings.IS_EXPIRED,
|
||||||
"(" + Tables.KEYS + "." + Keys.EXPIRY + " < " + new Date().getTime() / 1000 + ") AS "
|
"(" + Tables.KEYS + "." + Keys.EXPIRY + " IS NOT NULL AND " + Tables.KEYS + "." + Keys.EXPIRY
|
||||||
+ KeyRings.IS_EXPIRED);
|
+ " < " + new Date().getTime() / 1000 + ") AS " + KeyRings.IS_EXPIRED);
|
||||||
qb.setProjectionMap(projectionMap);
|
qb.setProjectionMap(projectionMap);
|
||||||
|
|
||||||
// Need this as list so we can search in it
|
// Need this as list so we can search in it
|
||||||
|
Loading…
Reference in New Issue
Block a user