|
|
@ -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 |
|
|
|