Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Jan 31, 2024
1 parent f818482 commit cbad59f
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,7 @@ open class ChangeBookSourceViewModel(application: Application) : BaseViewModel(a
) = coroutineScope {
val chapterIndex = if (fromReadBookActivity) {
oldBook?.let {
BookHelp.getDurChapter(
it.durChapterIndex,
it.durChapterTitle,
chapters,
it.totalChapterNum
)
BookHelp.getDurChapter(it, chapters)
} ?: chapters.lastIndex
} else chapters.lastIndex
val bookChapter = chapters[chapterIndex]
Expand Down

0 comments on commit cbad59f

Please sign in to comment.