pull/1903/head
kunfei 3 years ago
parent 499f35f086
commit 3b2865283a
  1. 2
      app/src/main/java/io/legado/app/ui/book/remote/RemoteBookActivity.kt

@ -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()
} }

Loading…
Cancel
Save