pull/517/head
gedoor 4 years ago
parent b031573c9d
commit 755bc62632
  1. 3
      app/src/main/java/io/legado/app/help/BookHelp.kt

@ -225,7 +225,8 @@ object BookHelp {
oldDurChapterName: String?, oldDurChapterName: String?,
newChapterList: List<BookChapter> newChapterList: List<BookChapter>
): Int { ): Int {
if (oldChapterListSize == 0) return 0 if (oldChapterListSize == 0) return oldDurChapterIndex
if (newChapterList.isEmpty()) return oldDurChapterIndex
val oldChapterNum = getChapterNum(oldDurChapterName) val oldChapterNum = getChapterNum(oldDurChapterName)
val oldName = getPureChapterName(oldDurChapterName) val oldName = getPureChapterName(oldDurChapterName)
val newChapterSize = newChapterList.size val newChapterSize = newChapterList.size

Loading…
Cancel
Save