mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
just use SettingsFormat
This commit is contained in:
parent
f41ace4d7c
commit
33c3cf4c4f
1 changed files with 6 additions and 2 deletions
|
@ -23,7 +23,6 @@ namespace Bit.Android.Services
|
|||
private const string KeyAlias = "bitwardenKey2";
|
||||
private const string KeyAliasV1 = "bitwardenKey";
|
||||
|
||||
private const string SettingsPrefix = "ksSecured2";
|
||||
private const string SettingsFormat = "ksSecured2:{0}";
|
||||
private const string SettingsFormatV1 = "ksSecured:{0}";
|
||||
|
||||
|
@ -341,8 +340,13 @@ namespace Bit.Android.Services
|
|||
}
|
||||
}
|
||||
|
||||
private void ClearSettings(string prefix = SettingsPrefix)
|
||||
private void ClearSettings(string prefix = null)
|
||||
{
|
||||
if(prefix == null)
|
||||
{
|
||||
prefix = string.Format(SettingsFormat);
|
||||
}
|
||||
|
||||
using(var sharedPreferences = PreferenceManager.GetDefaultSharedPreferences(Application.Context))
|
||||
using(var sharedPreferencesEditor = sharedPreferences.Edit())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue