File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
app/src/main/java/com/github/dfa/diaspora_android/util Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,24 @@ public Context getApplicationContext() {
49
49
return context ;
50
50
}
51
51
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" )
52
59
public void clearPodSettings () {
53
60
prefPod .edit ().clear ().commit ();
54
61
}
55
62
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" )
56
70
public void clearAppSettings () {
57
71
prefApp .edit ().clear ().commit ();
58
72
}
You can’t perform that action at this time.
0 commit comments