diff --git a/app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt b/app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt index 6eb1c59eb..1b78fa963 100644 --- a/app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt @@ -69,10 +69,10 @@ class ImportBookActivity : VMBaseActivity(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) diff --git a/app/src/main/java/io/legado/app/ui/importbook/ImportBookViewModel.kt b/app/src/main/java/io/legado/app/ui/importbook/ImportBookViewModel.kt index 1865f1be8..6fdcd8034 100644 --- a/app/src/main/java/io/legado/app/ui/importbook/ImportBookViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/importbook/ImportBookViewModel.kt @@ -6,5 +6,12 @@ import io.legado.app.base.BaseViewModel class ImportBookViewModel(application: Application) : BaseViewModel(application) { + fun addToBookshelf(uriList: HashSet) { + + } + + fun deleteDoc(uriList: HashSet) { + + } } \ No newline at end of file