Flush settings to persistent storage

This commit is contained in:
topjohnwu 2019-08-12 00:05:19 -07:00
parent 5aafc78847
commit 2225ccb146

View File

@ -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"