Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Jul 28, 2023
1 parent b445c37 commit 88a6d6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ class SearchActivity : VMBaseActivity<ActivityBookSearchBinding, SearchViewModel
viewModel.searchBookLiveData.observe(this) {
adapter.setItems(it)
}
launch {
appDb.bookSourceDao.flowEnabledGroups().flowOn(IO).collect {
launch(IO) {
appDb.bookSourceDao.flowEnabledGroups().collect {
groups = it
}
}
Expand Down

0 comments on commit 88a6d6d

Please sign in to comment.