pull/37/head
kunfei 5 years ago
parent d45abb8ffc
commit 423f69254b
  1. 2
      app/src/main/java/io/legado/app/ui/rss/source/manage/GroupManageDialog.kt
  2. 2
      app/src/main/java/io/legado/app/ui/rss/source/manage/RssSourceActivity.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<String>()
it.map { group ->
groups.addAll(group.splitNotBlank(",", ";"))

@ -81,6 +81,8 @@ class RssSourceActivity : VMBaseActivity<RssSourceViewModel>(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<QrCodeActivity>(qrRequestCode)
R.id.menu_group_manage -> GroupManageDialog()
.show(supportFragmentManager, "rssGroupManage")
}
if (item.groupId == R.id.source_group) {
search_view.setQuery(item.title, true)

Loading…
Cancel
Save