@ -246,6 +246,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(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)
@ -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
)