Skip to content

Commit

Permalink
clear settings via format as prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Jun 12, 2017
1 parent 33c3cf4 commit 1e5883f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Android/Services/AndroidKeyStoreStorageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,9 @@ private void CleanupOld(string key)
}
}

private void ClearSettings(string prefix = null)
private void ClearSettings(string format = SettingsFormat)
{
if(prefix == null)
{
prefix = string.Format(SettingsFormat);
}
var prefix = string.Format(format, string.Empty);

using(var sharedPreferences = PreferenceManager.GetDefaultSharedPreferences(Application.Context))
using(var sharedPreferencesEditor = sharedPreferences.Edit())
Expand Down

0 comments on commit 1e5883f

Please sign in to comment.