From db112d74535e30cfa7ee26484500b8ab7dc6795e Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 21 Sep 2019 22:59:26 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/widget/page/TextChapter.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }