From 31eef981a0b0be250469858521bd8e983a130a94 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 3 Dec 2019 13:43:57 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt | 4 ++++ 1 file changed, 4 insertions(+) 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 -> + } + } } }