aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-11-16 00:48:18 +0100
committerVincent Breitmoser <valodim@mugenguild.com>2016-01-06 16:24:12 +0100
commit31cc083163c634ac1f11d7aa22c679cda24ce892 (patch)
tree15c19a7347fd2c86da3784b76c9bd0692d774e5b /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget
parent840d57bf3b2c91f63f0df9d8988c16eb467b4a29 (diff)
downloadopen-keychain-31cc083163c634ac1f11d7aa22c679cda24ce892.tar.gz
open-keychain-31cc083163c634ac1f11d7aa22c679cda24ce892.tar.bz2
open-keychain-31cc083163c634ac1f11d7aa22c679cda24ce892.zip
passdialog: seconds field and some minor layout issues
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/CacheTTLSpinner.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/CacheTTLSpinner.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/CacheTTLSpinner.java
index 9a8a2f1d1..11f6fafcd 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/CacheTTLSpinner.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/CacheTTLSpinner.java
@@ -73,7 +73,7 @@ public class CacheTTLSpinner extends AppCompatSpinner {
public long getSelectedTimeToLive() {
int selectedItemPosition = getSelectedItemPosition();
Object item = getAdapter().getItem(selectedItemPosition);
- return ((Cursor) item).getLong(0);
+ return ((Cursor) item).getLong(1);
}
}