disable caching by default in KP2A Offline. this also hides the "work offline" mode by default as this seems to be misunderstood often.

This commit is contained in:
Philipp Crocoll 2016-08-21 03:45:30 +02:00
parent 199f900f4b
commit 914ff6a3be

View File

@ -722,7 +722,12 @@ namespace keepass2android
{ {
var prefs = PreferenceManager.GetDefaultSharedPreferences(Application.Context); var prefs = PreferenceManager.GetDefaultSharedPreferences(Application.Context);
bool cacheEnabled = prefs.GetBoolean(Application.Context.Resources.GetString(Resource.String.UseOfflineCache_key), bool cacheEnabled = prefs.GetBoolean(Application.Context.Resources.GetString(Resource.String.UseOfflineCache_key),
true); #if NoNet
false
#else
true
#endif
);
return cacheEnabled; return cacheEnabled;
} }
} }