diff --git a/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt b/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt index 764c2b0fa..15fdd25c4 100644 --- a/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt +++ b/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt @@ -257,6 +257,9 @@ class EpubFile(var book: Book) { } else { parseFirstPage(chapterList, refs) parseMenu(chapterList, refs, 0) + val lh = LinkedHashSet(chapterList) + chapterList.clear() + chapterList.addAll(lh) for (i in chapterList.indices) { chapterList[i].index = i }