From 3ea742dae0e27c661d6b2a085d91b769e0d02138 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 16 Oct 2022 19:36:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= 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 | 2 ++ 1 file changed, 2 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 d09ef387d..98e636be1 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 @@ -114,6 +114,8 @@ class MainViewModel(application: Application) : BaseViewModel(application) { } val source = appDb.bookSourceDao.getBookSource(book.origin) if (source == null) { + book.addType(BookType.updateError) + appDb.bookDao.update(book) waitUpTocBooks.remove(book.bookUrl) return }