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) {
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user