This commit is contained in:
kunfei 2022-10-10 20:15:26 +08:00
parent 3b011095dd
commit b08789e996
3 changed files with 3 additions and 3 deletions

View File

@ -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"
}

View File

@ -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) {

View File

@ -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)