mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
a35b7737aa
commit
06d486c96c
@ -1304,7 +1304,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|||||||
when (dialogId) {
|
when (dialogId) {
|
||||||
TEXT_COLOR -> {
|
TEXT_COLOR -> {
|
||||||
setCurTextColor(color)
|
setCurTextColor(color)
|
||||||
postEvent(EventBus.UP_CONFIG, arrayListOf(2, 9, 11))
|
postEvent(EventBus.UP_CONFIG, arrayListOf(2, 6, 9, 11))
|
||||||
}
|
}
|
||||||
|
|
||||||
BG_COLOR -> {
|
BG_COLOR -> {
|
||||||
@ -1500,9 +1500,9 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|||||||
5 -> if (isInitFinish) ReadBook.loadContent(resetPageOffset = false)
|
5 -> if (isInitFinish) ReadBook.loadContent(resetPageOffset = false)
|
||||||
6 -> readView.upContent(resetPageOffset = false)
|
6 -> readView.upContent(resetPageOffset = false)
|
||||||
8 -> ChapterProvider.upStyle()
|
8 -> ChapterProvider.upStyle()
|
||||||
9 -> binding.readView.invalidateTextPage()
|
9 -> readView.invalidateTextPage()
|
||||||
10 -> ChapterProvider.upLayout()
|
10 -> ChapterProvider.upLayout()
|
||||||
11 -> binding.readView.submitRenderTask()
|
11 -> readView.submitRenderTask()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1543,10 +1543,10 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|||||||
viewModel.searchResultList = it
|
viewModel.searchResultList = it
|
||||||
}
|
}
|
||||||
observeEvent<Boolean>(EventBus.UPDATE_READ_ACTION_BAR) {
|
observeEvent<Boolean>(EventBus.UPDATE_READ_ACTION_BAR) {
|
||||||
binding.readMenu.reset()
|
readMenu.reset()
|
||||||
}
|
}
|
||||||
observeEvent<Boolean>(EventBus.UP_SEEK_BAR) {
|
observeEvent<Boolean>(EventBus.UP_SEEK_BAR) {
|
||||||
binding.readMenu.upSeekBar()
|
readMenu.upSeekBar()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user