Commit 2225ccb1 authored by topjohnwu's avatar topjohnwu

Flush settings to persistent storage

parent 5aafc788
......@@ -199,7 +199,7 @@ object Config : PreferenceModel, DBConfig {
fun export() {
// Flush prefs to disk
prefs.edit().apply()
prefs.edit().commit()
val xml = File(
"${get<Context>(Protected).filesDir.parent}/shared_prefs",
"${packageName}_preferences.xml"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment