diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-08-05 00:23:04 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-08-05 00:23:04 +0200 |
commit | 80408460a0aa16c38dc5b3269061bac85306d24a (patch) | |
tree | 8453d5502e45d4b00359da7e89a9ba8ba0ff42ba /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/SubkeysAdapter.java | |
parent | de6950377cf8954ec5be1f07fb360e07fd0547b8 (diff) | |
download | open-keychain-80408460a0aa16c38dc5b3269061bac85306d24a.tar.gz open-keychain-80408460a0aa16c38dc5b3269061bac85306d24a.tar.bz2 open-keychain-80408460a0aa16c38dc5b3269061bac85306d24a.zip |
KeychainContract: use longs instead of String, other fixes
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/SubkeysAdapter.java')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/SubkeysAdapter.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/SubkeysAdapter.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/SubkeysAdapter.java index 0d8c7240d..25b3c0fc5 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/SubkeysAdapter.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/SubkeysAdapter.java @@ -90,6 +90,16 @@ public class SubkeysAdapter extends CursorAdapter { return mCursor.getLong(INDEX_KEY_ID); } + public long getCreationDate(int position) { + mCursor.moveToPosition(position); + return mCursor.getLong(INDEX_CREATION); + } + + public long getExpiryDate(int position) { + mCursor.moveToPosition(position); + return mCursor.getLong(INDEX_EXPIRY); + } + @Override public Cursor swapCursor(Cursor newCursor) { hasAnySecret = false; |