From 70efa5aedf6b29737a6945f0d2f4d4cc7d201d0e Mon Sep 17 00:00:00 2001 From: Dominik Date: Wed, 12 Sep 2012 11:58:33 +0200 Subject: [PATCH] fix ttl preference --- .../src/org/thialfihar/android/apg/helper/Preferences.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org_apg/src/org/thialfihar/android/apg/helper/Preferences.java b/org_apg/src/org/thialfihar/android/apg/helper/Preferences.java index 1d9124eac..14adf357a 100644 --- a/org_apg/src/org/thialfihar/android/apg/helper/Preferences.java +++ b/org_apg/src/org/thialfihar/android/apg/helper/Preferences.java @@ -59,14 +59,14 @@ public class Preferences { editor.commit(); } - public int getPassPhraseCacheTtl() { + public long getPassPhraseCacheTtl() { int ttl = mSharedPreferences.getInt(Constants.pref.PASS_PHRASE_CACHE_TTL, 180); // fix the value if it was set to "never" in previous versions, which currently is not // supported if (ttl == 0) { ttl = 180; } - return ttl; + return (long) ttl; } public void setPassPhraseCacheTtl(int value) {