From a4f7413ba3e4c6c95981d5efaa08874678bafe8b Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 20 Sep 2019 11:12:37 +0800 Subject: [PATCH] up --- .../ui/rss/source/manage/RssSourceActivity.kt | 4 +- app/src/main/res/menu/rss_source.xml | 129 +++++++++++++++++- app/src/main/res/values/strings.xml | 1 + 3 files changed, 131 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/rss/source/manage/RssSourceActivity.kt b/app/src/main/java/io/legado/app/ui/rss/source/manage/RssSourceActivity.kt index e70d8d4e9..ba709bcc3 100644 --- a/app/src/main/java/io/legado/app/ui/rss/source/manage/RssSourceActivity.kt +++ b/app/src/main/java/io/legado/app/ui/rss/source/manage/RssSourceActivity.kt @@ -14,10 +14,12 @@ import io.legado.app.data.entities.RssSource import io.legado.app.help.ItemTouchCallback import io.legado.app.lib.theme.ATH import io.legado.app.lib.theme.primaryTextColor +import io.legado.app.ui.rss.source.edit.RssSourceEditActivity import io.legado.app.utils.getViewModel import kotlinx.android.synthetic.main.activity_rss_source.* import kotlinx.android.synthetic.main.view_search.* import kotlinx.android.synthetic.main.view_title_bar.* +import org.jetbrains.anko.startActivity class RssSourceActivity : VMBaseActivity(R.layout.activity_rss_source), @@ -41,7 +43,7 @@ class RssSourceActivity : VMBaseActivity(R.layout.activity_r override fun onCompatOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { - + R.id.menu_add_book_source -> startActivity() } return super.onCompatOptionsItemSelected(item) } diff --git a/app/src/main/res/menu/rss_source.xml b/app/src/main/res/menu/rss_source.xml index e73b6af79..45ef06792 100644 --- a/app/src/main/res/menu/rss_source.xml +++ b/app/src/main/res/menu/rss_source.xml @@ -1,4 +1,129 @@ - + - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 16adb03bd..aa63506be 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -146,6 +146,7 @@ 编辑书源 禁用书源 新建书源 + 新建订阅源 添加书籍 扫描 拷贝书源