This commit is contained in:
kunfei
2022-09-10 12:03:34 +08:00
parent 0f663af2fd
commit 41be2d381e
4 changed files with 4 additions and 3 deletions

View File

@@ -29,4 +29,5 @@ object EventBus {
const val SOURCE_CHANGED = "sourceChanged"
const val SEARCH_RESULT = "searchResult"
const val BOOK_URL_CHANGED = "bookUrlChanged"
const val updateReadActionBar = "updateReadActionBar"
}

View File

@@ -127,5 +127,5 @@ object PreferKey {
const val bgImageNBlurring = "backgroundImageNightBlurring"
const val showReadTitleAddition = "showReadTitleAddition"
const val readBarStyleFollowPage = "readBarStyleFollowPage"
const val updateReadActionBar = "updateReadActionBar"
}

View File

@@ -1261,7 +1261,7 @@ class ReadBookActivity : BaseReadBookActivity(),
observeEvent<List<SearchResult>>(EventBus.SEARCH_RESULT) {
viewModel.searchResultList = it
}
observeEvent<Boolean>(PreferKey.updateReadActionBar){
observeEvent<Boolean>(EventBus.updateReadActionBar) {
binding.readMenu.reset()
}
}

View File

@@ -135,7 +135,7 @@ class MoreConfigDialog : DialogFragment() {
}
PreferKey.showReadTitleAddition,
PreferKey.readBarStyleFollowPage -> {
postEvent(PreferKey.updateReadActionBar,true)
postEvent(EventBus.updateReadActionBar, true)
}
}
}