From 30d5435b02e4cb88309b5a8fb37beda688b9e387 Mon Sep 17 00:00:00 2001 From: bushixuanqi <57338301+bushixuanqi@users.noreply.github.com> Date: Sun, 13 Jun 2021 18:10:04 +0800 Subject: [PATCH] Update AppConfig.kt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增自定义“导入文件名”选项 --- app/src/main/java/io/legado/app/help/AppConfig.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/io/legado/app/help/AppConfig.kt b/app/src/main/java/io/legado/app/help/AppConfig.kt index 4e90f74f9..4dc5d3877 100644 --- a/app/src/main/java/io/legado/app/help/AppConfig.kt +++ b/app/src/main/java/io/legado/app/help/AppConfig.kt @@ -102,6 +102,12 @@ object AppConfig : SharedPreferences.OnSharedPreferenceChangeListener { appCtx.putPrefString(PreferKey.bookExportFileName, value) } + var bookImportFileName: String? + get() = appCtx.getPrefString(PreferKey.bookImportFileName) + set(value) { + appCtx.putPrefString(PreferKey.bookImportFileName, value) + } + var backupPath: String? get() = appCtx.getPrefString(PreferKey.backupPath) set(value) {