Use IO Dispatcher to collect history data

This commit is contained in:
tarsin committed 2023-02-27 22:16:56 +08:00
1 parent 154cf18b34
commit e2be9580c6
1 file changed
+1 -1
@@ -147,7 +147,7 @@ class HistoryScene : BaseToolbarScene() {
val handlerDrawable = HandlerDrawable()
handlerDrawable.setColor(theme.resolveColor(com.google.android.material.R.attr.colorPrimary))
binding.fastScroller.setHandlerDrawable(handlerDrawable)
viewLifecycleOwner.lifecycleScope.launch {
lifecycleScope.launchIO {
historyData.collectLatest { value ->
mAdapter.submitData(
value