diff --git a/app/src/main/java/io/legado/app/ui/widget/page/TextChapter.kt b/app/src/main/java/io/legado/app/ui/widget/page/TextChapter.kt index d7fbf375d..0ab136b42 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/TextChapter.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/TextChapter.kt @@ -31,7 +31,10 @@ data class TextChapter( pages.forEach { spannableStringBuilder.append(it.text) } - return TextPage(0, spannableStringBuilder, title, position, pages.size) + return TextPage( + index = 0, text = spannableStringBuilder, title = title, + pageSize = pages.size, chapterSize = chaptersSize, chapterIndex = position + ) } return null }