From 0f0bd2587c235189094e12b075c62b1822930b3b Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 3 Aug 2019 21:15:23 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/main/my/PreferenceFragment.kt | 3 ++- app/src/main/res/xml/pref_main.xml | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/main/my/PreferenceFragment.kt b/app/src/main/java/io/legado/app/ui/main/my/PreferenceFragment.kt index 4f24b9e75..5b6eabd1c 100644 --- a/app/src/main/java/io/legado/app/ui/main/my/PreferenceFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/my/PreferenceFragment.kt @@ -8,12 +8,12 @@ import androidx.preference.PreferenceFragmentCompat import io.legado.app.App import io.legado.app.R import io.legado.app.lib.theme.ATH -import io.legado.app.lib.theme.ThemeStore import io.legado.app.ui.about.AboutActivity import io.legado.app.ui.about.DonateActivity import io.legado.app.ui.booksource.BookSourceActivity import io.legado.app.ui.config.ConfigActivity import io.legado.app.ui.config.ConfigViewModel +import io.legado.app.ui.replacerule.ReplaceRuleActivity import org.jetbrains.anko.startActivity class PreferenceFragment : PreferenceFragmentCompat(), @@ -50,6 +50,7 @@ class PreferenceFragment : PreferenceFragmentCompat(), preference?.let { when (preference.key) { "bookSourceManage" -> context?.startActivity() + "replaceManage" -> context?.startActivity() "setting" -> context?.startActivity( Pair("configType", ConfigViewModel.TYPE_CONFIG) ) diff --git a/app/src/main/res/xml/pref_main.xml b/app/src/main/res/xml/pref_main.xml index c187a7199..cf9f19b53 100644 --- a/app/src/main/res/xml/pref_main.xml +++ b/app/src/main/res/xml/pref_main.xml @@ -7,6 +7,11 @@ android:title="书源管理" app:iconSpaceReserved="false" /> + +