pull/94/head
kunfei 5 years ago
parent 461da74963
commit 272232291f
  1. 4
      app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt

@ -162,8 +162,12 @@ class BookSourceActivity : VMBaseActivity<BookSourceViewModel>(R.layout.activity
private fun initViewEvent() { private fun initViewEvent() {
cb_selected_all.onClick { cb_selected_all.onClick {
if (adapter.getSelection().size == adapter.getActualItemCount()) {
adapter.revertSelection()
} else {
adapter.selectAll() adapter.selectAll()
} }
}
btn_revert_selection.onClick { btn_revert_selection.onClick {
adapter.revertSelection() adapter.revertSelection()
} }

Loading…
Cancel
Save