mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-12 04:25:09 -05:00
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:
parent
199f900f4b
commit
914ff6a3be
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user