Suppressed unfixable warnings on clearPodSettings and clearAppSettings.

This commit is contained in:
vanitasvitae 2016-11-06 19:55:45 +01:00
parent b07a1eba1e
commit e6f16fce50
Signed by: vanitasvitae
GPG Key ID: DCCFB3302C9E4615
1 changed files with 14 additions and 0 deletions

View File

@ -49,10 +49,24 @@ public class AppSettings {
return context;
}
/**
* Clear all settings in prefPod (Settings related to the configured pod)
* This uses commit instead of apply, since
* SettingsActivity.SettingsFragmentDebugging.showWipeSettingsDialog()
* kills the app after the calling this, so we have to block until we are finished.
*/
@SuppressLint("CommitPrefEdits")
public void clearPodSettings() {
prefPod.edit().clear().commit();
}
/**
* Clear all settings in prefApp (related to the App itself)
* This uses commit instead of apply, since
* SettingsActivity.SettingsFragmentDebugging.showWipeSettingsDialog()
* kills the app after the calling this, so we have to block until we are finished.
*/
@SuppressLint("CommitPrefEdits")
public void clearAppSettings() {
prefApp.edit().clear().commit();
}