优化
This commit is contained in:
@@ -1394,14 +1394,15 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
observeEvent<Boolean>(EventBus.UP_CONFIG) {
|
observeEvent<Boolean>(EventBus.UP_CONFIG) {
|
||||||
if (!isInitFinish) return@observeEvent
|
|
||||||
upSystemUiVisibility()
|
upSystemUiVisibility()
|
||||||
readView.upPageSlopSquare()
|
readView.upPageSlopSquare()
|
||||||
readView.upBg()
|
readView.upBg()
|
||||||
readView.upStyle()
|
readView.upStyle()
|
||||||
readView.upBgAlpha()
|
readView.upBgAlpha()
|
||||||
if (it) {
|
if (it) {
|
||||||
ReadBook.loadContent(resetPageOffset = false)
|
if (isInitFinish) {
|
||||||
|
ReadBook.loadContent(resetPageOffset = false)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
readView.upContent(resetPageOffset = false)
|
readView.upContent(resetPageOffset = false)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import kotlin.math.min
|
|||||||
data class TextPage(
|
data class TextPage(
|
||||||
var index: Int = 0,
|
var index: Int = 0,
|
||||||
var text: String = appCtx.getString(R.string.data_loading),
|
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(),
|
private val textLines: ArrayList<TextLine> = arrayListOf(),
|
||||||
var pageSize: Int = 0,
|
var pageSize: Int = 0,
|
||||||
var chapterSize: Int = 0,
|
var chapterSize: Int = 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user