mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user