mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
f8d29f02ae
commit
0854dbdb76
@ -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) {
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user