pull/83/head
kunfei 5 years ago
parent e9d8cbf87b
commit 46e4916bfe
  1. 4
      app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt
  2. 7
      app/src/main/java/io/legado/app/ui/importbook/ImportBookViewModel.kt

@ -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>) {
}
}
Loading…
Cancel
Save