From 4536837db6f9fff1aac7760397ebaa35c7da2051 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 22 Feb 2022 10:37:11 +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/ui/book/changesource/ChangeChapterSourceViewModel.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeChapterSourceViewModel.kt b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeChapterSourceViewModel.kt index c11326d6e..5bf669a26 100644 --- a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeChapterSourceViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeChapterSourceViewModel.kt @@ -285,7 +285,9 @@ class ChangeChapterSourceViewModel(application: Application) : BaseViewModel(app if (book.tocUrl.isEmpty()) { WebBook.getBookInfoAwait(this, source, book) } - WebBook.getChapterListAwait(this, source, book) + val toc = WebBook.getChapterListAwait(this, source, book) + tocMap[book.bookUrl] = toc + toc } }.onSuccess { success(it)