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) {