This commit is contained in:
Horis 2023-03-08 13:28:56 +08:00
parent f8d29f02ae
commit 0854dbdb76
2 changed files with 2 additions and 1 deletions

View File

@ -1319,7 +1319,6 @@ class ReadBookActivity : BaseReadBookActivity(),
}
override fun observeLiveBus() = binding.run {
super.observeLiveBus()
observeEvent<String>(EventBus.TIME_CHANGED) { readView.upTime() }
observeEvent<Int>(EventBus.BATTERY_CHANGED) { readView.upBattery(it) }
observeEvent<Boolean>(EventBus.MEDIA_BUTTON) {

View File

@ -135,6 +135,7 @@ class ReadView(context: Context, attrs: AttributeSet) :
pageDelegate?.setViewSize(w, h)
if (w > 0 && h > 0) {
upBg()
callBack.upSystemUiVisibility()
}
}
@ -656,5 +657,6 @@ class ReadView(context: Context, attrs: AttributeSet) :
fun addBookmark()
fun changeReplaceRuleState()
fun openSearchActivity(searchWord: String?)
fun upSystemUiVisibility()
}
}