pull/2178/head
821938089 2 years ago
parent 51fbd1f7ba
commit 9e7f04ea07
  1. 3
      app/src/main/java/io/legado/app/model/localBook/EpubFile.kt

@ -257,6 +257,9 @@ class EpubFile(var book: Book) {
} else { } else {
parseFirstPage(chapterList, refs) parseFirstPage(chapterList, refs)
parseMenu(chapterList, refs, 0) parseMenu(chapterList, refs, 0)
val lh = LinkedHashSet(chapterList)
chapterList.clear()
chapterList.addAll(lh)
for (i in chapterList.indices) { for (i in chapterList.indices) {
chapterList[i].index = i chapterList[i].index = i
} }

Loading…
Cancel
Save