mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user