Skip to content

Commit e6f16fc

Browse files
committed
Suppressed unfixable warnings on clearPodSettings and clearAppSettings.
1 parent b07a1eb commit e6f16fc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

app/src/main/java/com/github/dfa/diaspora_android/util/AppSettings.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,24 @@ public Context getApplicationContext() {
4949
return context;
5050
}
5151

52+
/**
53+
* Clear all settings in prefPod (Settings related to the configured pod)
54+
* This uses commit instead of apply, since
55+
* SettingsActivity.SettingsFragmentDebugging.showWipeSettingsDialog()
56+
* kills the app after the calling this, so we have to block until we are finished.
57+
*/
58+
@SuppressLint("CommitPrefEdits")
5259
public void clearPodSettings() {
5360
prefPod.edit().clear().commit();
5461
}
5562

63+
/**
64+
* Clear all settings in prefApp (related to the App itself)
65+
* This uses commit instead of apply, since
66+
* SettingsActivity.SettingsFragmentDebugging.showWipeSettingsDialog()
67+
* kills the app after the calling this, so we have to block until we are finished.
68+
*/
69+
@SuppressLint("CommitPrefEdits")
5670
public void clearAppSettings() {
5771
prefApp.edit().clear().commit();
5872
}

0 commit comments

Comments
 (0)