Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Sep 19, 2023
1 parent 47405e7 commit ff70a68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ff70a68

Please sign in to comment.