diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index 202eb3c69..eca831f27 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -246,6 +246,7 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea tv_chapter_url.visible() } viewModel.curTextChapter = ChapterProvider.getTextChapter(content_text_view, bookChapter, content) + content_text_view.text = viewModel.curTextChapter?.page(0)?.stringBuilder } viewModel.durChapterIndex - 1 -> { viewModel.prevTextChapter = ChapterProvider.getTextChapter(content_text_view, bookChapter, content) diff --git a/app/src/main/java/io/legado/app/ui/widget/page/TextPage.kt b/app/src/main/java/io/legado/app/ui/widget/page/TextPage.kt index 4feeaf64e..5c6dc6cdc 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/TextPage.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/TextPage.kt @@ -2,4 +2,7 @@ package io.legado.app.ui.widget.page import android.text.SpannableStringBuilder -data class TextPage(val index: Int, val stringBuilder: SpannableStringBuilder) +data class TextPage( + val index: Int, + val stringBuilder: SpannableStringBuilder +)