This commit is contained in:
kunfei committed 2022-05-21 00:51:15 +08:00
1 parent a433341476
commit 2962ba4873
1 file changed
+1 -1
@@ -39,9 +39,9 @@ class RemoteBookActivity : VMBaseActivity<ActivityRemoteBookBinding,RemoteBookVi
binding.refreshProgressBar.isAutoLoading = true binding.refreshProgressBar.isAutoLoading = true
launch { launch {
viewModel.dataFlow.conflate().collect { remoteBooks -> viewModel.dataFlow.conflate().collect { remoteBooks ->
binding.refreshProgressBar.isAutoLoading = false
adapter.setItems(remoteBooks) adapter.setItems(remoteBooks)
} }
binding.refreshProgressBar.isAutoLoading = false
} }
viewModel.loadRemoteBookList() viewModel.loadRemoteBookList()
} }