1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-24 21:32:07 +01:00

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

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();
}