From 423f69254b45ad740f9e1e70d0b50c1a7118c886 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 12 Oct 2019 22:49:55 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/rss/source/manage/GroupManageDialog.kt | 2 +- .../io/legado/app/ui/rss/source/manage/RssSourceActivity.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/rss/source/manage/GroupManageDialog.kt b/app/src/main/java/io/legado/app/ui/rss/source/manage/GroupManageDialog.kt index 673cdae33..27c5fd45f 100644 --- a/app/src/main/java/io/legado/app/ui/rss/source/manage/GroupManageDialog.kt +++ b/app/src/main/java/io/legado/app/ui/rss/source/manage/GroupManageDialog.kt @@ -68,7 +68,7 @@ class GroupManageDialog : DialogFragment(), Toolbar.OnMenuItemClickListener { DividerItemDecoration(requireContext(), RecyclerView.VERTICAL) ) recycler_view.adapter = adapter - App.db.bookSourceDao().liveGroup().observe(viewLifecycleOwner, Observer { + App.db.rssSourceDao().liveGroup().observe(viewLifecycleOwner, Observer { val groups = linkedSetOf() it.map { group -> groups.addAll(group.splitNotBlank(",", ";")) 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 ad739b5c2..e34a56418 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 @@ -81,6 +81,8 @@ class RssSourceActivity : VMBaseActivity(R.layout.activity_r R.id.menu_import_source_local -> selectFile() R.id.menu_import_source_onLine -> showImportDialog() R.id.menu_import_source_qr -> startActivityForResult(qrRequestCode) + R.id.menu_group_manage -> GroupManageDialog() + .show(supportFragmentManager, "rssGroupManage") } if (item.groupId == R.id.source_group) { search_view.setQuery(item.title, true)