pull/32/head
kunfei 5 years ago
parent 63641f47d9
commit 576678bacb
  1. 1
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt
  2. 5
      app/src/main/java/io/legado/app/ui/widget/page/TextPage.kt

@ -246,6 +246,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
tv_chapter_url.visible() tv_chapter_url.visible()
} }
viewModel.curTextChapter = ChapterProvider.getTextChapter(content_text_view, bookChapter, content) viewModel.curTextChapter = ChapterProvider.getTextChapter(content_text_view, bookChapter, content)
content_text_view.text = viewModel.curTextChapter?.page(0)?.stringBuilder
} }
viewModel.durChapterIndex - 1 -> { viewModel.durChapterIndex - 1 -> {
viewModel.prevTextChapter = ChapterProvider.getTextChapter(content_text_view, bookChapter, content) viewModel.prevTextChapter = ChapterProvider.getTextChapter(content_text_view, bookChapter, content)

@ -2,4 +2,7 @@ package io.legado.app.ui.widget.page
import android.text.SpannableStringBuilder import android.text.SpannableStringBuilder
data class TextPage(val index: Int, val stringBuilder: SpannableStringBuilder) data class TextPage(
val index: Int,
val stringBuilder: SpannableStringBuilder
)

Loading…
Cancel
Save