mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
47405e7b39
commit
ff70a68ee6
@ -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) {
|
||||
if (isInitFinish) {
|
||||
ReadBook.loadContent(resetPageOffset = false)
|
||||
}
|
||||
} else {
|
||||
readView.upContent(resetPageOffset = false)
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user