diff --git a/app/src/main/java/io/legado/app/ui/config/ConfigActivity.kt b/app/src/main/java/io/legado/app/ui/config/ConfigActivity.kt index 6329cb2e3..52d197a08 100644 --- a/app/src/main/java/io/legado/app/ui/config/ConfigActivity.kt +++ b/app/src/main/java/io/legado/app/ui/config/ConfigActivity.kt @@ -19,7 +19,7 @@ class ConfigActivity : VMBaseActivity(R.layout.activity_config) when (viewModel.configType) { ConfigViewModel.TYPE_CONFIG -> { - title_bar.title = "设置" + title_bar.title = getString(R.string.setting) val fTag = "configFragment" var configFragment = supportFragmentManager.findFragmentByTag(fTag) if (configFragment == null) configFragment = ConfigFragment() @@ -28,7 +28,7 @@ class ConfigActivity : VMBaseActivity(R.layout.activity_config) .commit() } ConfigViewModel.TYPE_THEME_CONFIG -> { - title_bar.title = "主题设置" + title_bar.title = getString(R.string.theme_setting) val fTag = "themeConfigFragment" var configFragment = supportFragmentManager.findFragmentByTag(fTag) if (configFragment == null) configFragment = ThemeConfigFragment() @@ -37,7 +37,7 @@ class ConfigActivity : VMBaseActivity(R.layout.activity_config) .commit() } ConfigViewModel.TYPE_WEB_DAV_CONFIG -> { - title_bar.title = "WebDav设置" + title_bar.title = getString(R.string.backup_restore) val fTag = "webDavFragment" var configFragment = supportFragmentManager.findFragmentByTag(fTag) if (configFragment == null) configFragment = WebDavConfigFragment() diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f940f389f..d1d0625be 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -90,6 +90,8 @@ 打开软件时自动更新书籍 自动下载最新章节 更新书籍时自动下载最新章节 + 备份与恢复 + WebDav设置/导入旧版本数据 备份 恢复 备份请给与存储权限 diff --git a/app/src/main/res/xml/pref_config_web_dav.xml b/app/src/main/res/xml/pref_config_web_dav.xml index 9591ca1b4..51234ec1a 100644 --- a/app/src/main/res/xml/pref_config_web_dav.xml +++ b/app/src/main/res/xml/pref_config_web_dav.xml @@ -30,4 +30,9 @@ android:title="恢复" app:iconSpaceReserved="false" /> + + \ No newline at end of file diff --git a/app/src/main/res/xml/pref_main.xml b/app/src/main/res/xml/pref_main.xml index 9eec8a697..c80565e03 100644 --- a/app/src/main/res/xml/pref_main.xml +++ b/app/src/main/res/xml/pref_main.xml @@ -30,8 +30,8 @@