mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-24 03:16:00 +00:00
Use 'commit' method to write shared prefs (#154)
This commit is contained in:
@@ -60,7 +60,7 @@ class ManageSpaceActivity: FragmentActivity() {
|
||||
dataDir.resolve("shared_prefs").deleteRecursively()
|
||||
} else {
|
||||
val sharedPref = applicationContext.getSharedPreferences("data", MODE_PRIVATE)
|
||||
sharedPref.edit { clear() }
|
||||
sharedPref.edit(true) { clear() }
|
||||
}
|
||||
this.showOperationResultToast(true)
|
||||
finish()
|
||||
|
||||
Reference in New Issue
Block a user