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