优化
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user