From 67f76f8a93c2061cd655eace6a8aa448b5dbdaf3 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 16 Jun 2020 20:47:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=B7=E6=96=B0=E6=97=B6=E5=8F=AA?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=BD=93=E5=89=8D=E4=B9=A6=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/main/MainViewModel.kt | 6 ++++++ 1 file changed, 6 insertions(+) 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 ->