|
|
@ -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() |
|
|
|
} |
|
|
|
} |
|
|
|