From 2f1b545456d591abaa92819a346dfa8fa1818e8c Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 13 Apr 2018 22:33:13 +0200 Subject: [PATCH] properly store the last filepicker path --- .../kotlin/com/simplemobiletools/gallery/helpers/Config.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt index a76deb83c..131545dd1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt @@ -328,6 +328,6 @@ class Config(context: Context) : BaseConfig(context) { set(wasNewAppShown) = prefs.edit().putBoolean(WAS_NEW_APP_SHOWN, wasNewAppShown).apply() var lastFilepickerPath: String - get() = prefs.getString(TEMP_FOLDER_PATH, "") - set(tempFolderPath) = prefs.edit().putString(TEMP_FOLDER_PATH, tempFolderPath).apply() + get() = prefs.getString(LAST_FILEPICKER_PATH, "") + set(lastFilepickerPath) = prefs.edit().putString(LAST_FILEPICKER_PATH, lastFilepickerPath).apply() }