|
|
@ -31,6 +31,7 @@ import io.legado.app.ui.filepicker.FilePickerDialog |
|
|
|
import io.legado.app.ui.qrcode.QrCodeActivity |
|
|
|
import io.legado.app.ui.qrcode.QrCodeActivity |
|
|
|
import io.legado.app.ui.rss.source.edit.RssSourceEditActivity |
|
|
|
import io.legado.app.ui.rss.source.edit.RssSourceEditActivity |
|
|
|
import io.legado.app.ui.widget.SelectActionBar |
|
|
|
import io.legado.app.ui.widget.SelectActionBar |
|
|
|
|
|
|
|
import io.legado.app.ui.widget.dialog.TextDialog |
|
|
|
import io.legado.app.ui.widget.recycler.DragSelectTouchHelper |
|
|
|
import io.legado.app.ui.widget.recycler.DragSelectTouchHelper |
|
|
|
import io.legado.app.ui.widget.recycler.ItemTouchCallback |
|
|
|
import io.legado.app.ui.widget.recycler.ItemTouchCallback |
|
|
|
import io.legado.app.ui.widget.recycler.VerticalDivider |
|
|
|
import io.legado.app.ui.widget.recycler.VerticalDivider |
|
|
@ -92,6 +93,9 @@ class RssSourceActivity : VMBaseActivity<ActivityRssSourceBinding, RssSourceView |
|
|
|
R.id.menu_import_source_qr -> startActivityForResult<QrCodeActivity>(qrRequestCode) |
|
|
|
R.id.menu_import_source_qr -> startActivityForResult<QrCodeActivity>(qrRequestCode) |
|
|
|
R.id.menu_group_manage -> GroupManageDialog() |
|
|
|
R.id.menu_group_manage -> GroupManageDialog() |
|
|
|
.show(supportFragmentManager, "rssGroupManage") |
|
|
|
.show(supportFragmentManager, "rssGroupManage") |
|
|
|
|
|
|
|
R.id.menu_share_source -> { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
R.id.menu_help -> showHelp() |
|
|
|
else -> if (item.groupId == R.id.source_group) { |
|
|
|
else -> if (item.groupId == R.id.source_group) { |
|
|
|
binding.titleBar.findViewById<SearchView>(R.id.search_view) |
|
|
|
binding.titleBar.findViewById<SearchView>(R.id.search_view) |
|
|
|
.setQuery(item.title, true) |
|
|
|
.setQuery(item.title, true) |
|
|
@ -214,6 +218,11 @@ class RssSourceActivity : VMBaseActivity<ActivityRssSourceBinding, RssSourceView |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private fun showHelp() { |
|
|
|
|
|
|
|
val text = String(assets.open("help/SourceMRssHelp.md").readBytes()) |
|
|
|
|
|
|
|
TextDialog.show(supportFragmentManager, text, TextDialog.MD) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun upCountView() { |
|
|
|
override fun upCountView() { |
|
|
|
binding.selectActionBar.upCountView( |
|
|
|
binding.selectActionBar.upCountView( |
|
|
|
adapter.getSelection().size, |
|
|
|
adapter.getSelection().size, |
|
|
|