This commit is contained in:
Horis 2023-09-19 23:11:25 +08:00
parent 47405e7b39
commit ff70a68ee6
2 changed files with 4 additions and 3 deletions

View File

@ -1394,14 +1394,15 @@ class ReadBookActivity : BaseReadBookActivity(),
}
}
observeEvent<Boolean>(EventBus.UP_CONFIG) {
if (!isInitFinish) return@observeEvent
upSystemUiVisibility()
readView.upPageSlopSquare()
readView.upBg()
readView.upStyle()
readView.upBgAlpha()
if (it) {
ReadBook.loadContent(resetPageOffset = false)
if (isInitFinish) {
ReadBook.loadContent(resetPageOffset = false)
}
} else {
readView.upContent(resetPageOffset = false)
}

View File

@ -21,7 +21,7 @@ import kotlin.math.min
data class TextPage(
var index: Int = 0,
var text: String = appCtx.getString(R.string.data_loading),
var title: String = "",
var title: String = appCtx.getString(R.string.data_loading),
private val textLines: ArrayList<TextLine> = arrayListOf(),
var pageSize: Int = 0,
var chapterSize: Int = 0,