From 755bc626324719961bce29a5e11ebab4b4a539fe Mon Sep 17 00:00:00 2001 From: gedoor Date: Thu, 3 Dec 2020 19:28:21 +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/help/BookHelp.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/BookHelp.kt b/app/src/main/java/io/legado/app/help/BookHelp.kt index a9364536f..00a94e47a 100644 --- a/app/src/main/java/io/legado/app/help/BookHelp.kt +++ b/app/src/main/java/io/legado/app/help/BookHelp.kt @@ -225,7 +225,8 @@ object BookHelp { oldDurChapterName: String?, newChapterList: List ): Int { - if (oldChapterListSize == 0) return 0 + if (oldChapterListSize == 0) return oldDurChapterIndex + if (newChapterList.isEmpty()) return oldDurChapterIndex val oldChapterNum = getChapterNum(oldDurChapterName) val oldName = getPureChapterName(oldDurChapterName) val newChapterSize = newChapterList.size