mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
461da74963
commit
272232291f
@ -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…
Reference in New Issue
Block a user