mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-22 01:02:16 -05:00
removed Caching related setting from NoNet
This commit is contained in:
parent
dd5710cf79
commit
2ca50c5778
@ -435,7 +435,6 @@ namespace keepass2android
|
||||
///Application class for Keepass2Android: Contains static Database variable to be used by all components.
|
||||
#if NoNet
|
||||
[Application(Debuggable=false, Label=AppNames.AppName)]
|
||||
todo: remove caching preference
|
||||
#else
|
||||
#if RELEASE
|
||||
[Application(Debuggable=false, Label=AppNames.AppName)]
|
||||
|
@ -44,7 +44,21 @@ namespace keepass2android
|
||||
|
||||
FindPreference(GetString(Resource.String.keyfile_key)).PreferenceChange += OnRememberKeyFileHistoryChanged;
|
||||
FindPreference(GetString(Resource.String.ShowUnlockedNotification_key)).PreferenceChange += OnShowUnlockedNotificationChanged;;
|
||||
FindPreference(GetString(Resource.String.UseOfflineCache_key)).PreferenceChange += OnUseOfflineCacheChanged;
|
||||
|
||||
Preference cachingPreference = FindPreference(GetString(Resource.String.UseOfflineCache_key));
|
||||
cachingPreference.PreferenceChange += OnUseOfflineCacheChanged;
|
||||
|
||||
#if NoNet
|
||||
try
|
||||
{
|
||||
((PreferenceCategory) FindPreference(GetString(Resource.String.db_key))).RemovePreference(cachingPreference);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Kp2aLog.Log(ex.ToString());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
FindPreference(GetString(Resource.String.db_key)).Enabled = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user