diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt index 08938f6b3..c50e441b0 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt @@ -33,6 +33,10 @@ class BookshelfViewModel(application: Application) : BaseViewModel(application) } fun downloadAll() { + execute { + App.db.bookDao().allBooks.forEach { book -> + } + } } }