From 31cc083163c634ac1f11d7aa22c679cda24ce892 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Mon, 16 Nov 2015 00:48:18 +0100 Subject: passdialog: seconds field and some minor layout issues --- .../java/org/sufficientlysecure/keychain/ui/widget/CacheTTLSpinner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenKeychain/src/main/java/org') 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); } } -- cgit v1.2.3