mirror of
https://github.com/gsantner/dandelion
synced 2024-12-25 12:28:02 +01:00
Suppressed unfixable warnings on clearPodSettings and clearAppSettings.
This commit is contained in:
parent
b07a1eba1e
commit
e6f16fce50
1 changed files with 14 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue