diff --git a/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt b/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt index 4dcd3560d..fe22ce11e 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt @@ -18,6 +18,12 @@ import kotlinx.coroutines.delay class MainViewModel(application: Application) : BaseViewModel(application) { val updateList = hashSetOf() + fun upChapterList() { + execute { + upChapterList(App.db.bookDao().hasUpdateBooks) + } + } + fun upChapterList(books: List) { execute { books.forEach { book ->