|
|
|
@ -130,7 +130,6 @@ class RssSourceActivity : VMBaseActivity<ActivityRssSourceBinding, RssSourceView |
|
|
|
|
when (item?.itemId) { |
|
|
|
|
R.id.menu_enable_selection -> viewModel.enableSelection(adapter.selection) |
|
|
|
|
R.id.menu_disable_selection -> viewModel.disableSelection(adapter.selection) |
|
|
|
|
R.id.menu_del_selection -> viewModel.delSelection(adapter.selection) |
|
|
|
|
R.id.menu_top_sel -> viewModel.topSource(*adapter.selection.toTypedArray()) |
|
|
|
|
R.id.menu_bottom_sel -> viewModel.bottomSource(*adapter.selection.toTypedArray()) |
|
|
|
|
R.id.menu_export_selection -> viewModel.saveToFile(adapter.selection) { file -> |
|
|
|
@ -211,13 +210,13 @@ class RssSourceActivity : VMBaseActivity<ActivityRssSourceBinding, RssSourceView |
|
|
|
|
adapter.revertSelection() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onClickMainAction() { |
|
|
|
|
override fun onClickSelectBarMainAction() { |
|
|
|
|
delSourceDialog() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun delSourceDialog() { |
|
|
|
|
alert(titleResource = R.string.draw, messageResource = R.string.sure_del) { |
|
|
|
|
okButton { viewModel.delSelection(adapter.selection) } |
|
|
|
|
okButton { viewModel.del(*adapter.selection.toTypedArray()) } |
|
|
|
|
noButton() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|