@ -69,10 +69,10 @@ class ImportBookActivity : VMBaseActivity<ImportBookViewModel>(R.layout.activity
goBackDir()
}
btn_add_book.onClick {
viewModel.addToBookshelf(adapter.selectedUris)
btn_delete.onClick {
viewModel.deleteDoc(adapter.selectedUris)
cb_selected_all.onClick {
adapter.selectAll(cb_selected_all.isChecked)
@ -6,5 +6,12 @@ import io.legado.app.base.BaseViewModel
class ImportBookViewModel(application: Application) : BaseViewModel(application) {
fun addToBookshelf(uriList: HashSet<String>) {
fun deleteDoc(uriList: HashSet<String>) {