From 914ff6a3be42161d12f274f4096e86cc8cee9f9d Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Sun, 21 Aug 2016 03:45:30 +0200 Subject: [PATCH] disable caching by default in KP2A Offline. this also hides the "work offline" mode by default as this seems to be misunderstood often. --- src/keepass2android/app/App.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/keepass2android/app/App.cs b/src/keepass2android/app/App.cs index 80ffe6a5..0e8106e9 100644 --- a/src/keepass2android/app/App.cs +++ b/src/keepass2android/app/App.cs @@ -722,7 +722,12 @@ namespace keepass2android { var prefs = PreferenceManager.GetDefaultSharedPreferences(Application.Context); bool cacheEnabled = prefs.GetBoolean(Application.Context.Resources.GetString(Resource.String.UseOfflineCache_key), - true); +#if NoNet + false +#else + true +#endif + ); return cacheEnabled; } }