default caching ttl to "until cleared"

This commit is contained in:
Vincent Breitmoser
2017-09-20 20:50:03 +02:00
parent 03ca1292fa
commit 647589c9ae

View File

@@ -97,7 +97,7 @@ public class Preferences {
} }
public int getCacheTtlSeconds() { public int getCacheTtlSeconds() {
return mSharedPreferences.getInt(Pref.PASSPHRASE_CACHE_LAST_TTL, 0); return mSharedPreferences.getInt(Pref.PASSPHRASE_CACHE_LAST_TTL, Integer.MAX_VALUE);
} }
public void setCacheTtlSeconds(int ttlSeconds) { public void setCacheTtlSeconds(int ttlSeconds) {