mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
3b011095dd
commit
b08789e996
@ -29,6 +29,6 @@ object EventBus {
|
||||
const val SOURCE_CHANGED = "sourceChanged"
|
||||
const val SEARCH_RESULT = "searchResult"
|
||||
const val FILE_SOURCE_DOWNLOAD_DONE = "fileSourceDownloadDone"
|
||||
const val updateReadActionBar = "updateReadActionBar"
|
||||
const val UPDATE_READ_ACTION_BAR = "updateReadActionBar"
|
||||
const val UP_SEEK_BAR = "upSeekBar"
|
||||
}
|
@ -1331,7 +1331,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
||||
observeEvent<List<SearchResult>>(EventBus.SEARCH_RESULT) {
|
||||
viewModel.searchResultList = it
|
||||
}
|
||||
observeEvent<Boolean>(EventBus.updateReadActionBar) {
|
||||
observeEvent<Boolean>(EventBus.UPDATE_READ_ACTION_BAR) {
|
||||
binding.readMenu.reset()
|
||||
}
|
||||
observeEvent<Boolean>(EventBus.UP_SEEK_BAR) {
|
||||
|
@ -135,7 +135,7 @@ class MoreConfigDialog : DialogFragment() {
|
||||
}
|
||||
PreferKey.showReadTitleAddition,
|
||||
PreferKey.readBarStyleFollowPage -> {
|
||||
postEvent(EventBus.updateReadActionBar, true)
|
||||
postEvent(EventBus.UPDATE_READ_ACTION_BAR, true)
|
||||
}
|
||||
PreferKey.progressBarBehavior -> {
|
||||
postEvent(EventBus.UP_SEEK_BAR, true)
|
||||
|
Loading…
Reference in New Issue
Block a user