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

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

Loading…
Cancel
Save