mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
499f35f086
commit
3b2865283a
@ -39,9 +39,9 @@ class RemoteBookActivity : VMBaseActivity<ActivityRemoteBookBinding,RemoteBookVi
|
||||
binding.refreshProgressBar.isAutoLoading = true
|
||||
launch {
|
||||
viewModel.dataFlow.conflate().collect { remoteBooks ->
|
||||
binding.refreshProgressBar.isAutoLoading = false
|
||||
adapter.setItems(remoteBooks)
|
||||
}
|
||||
binding.refreshProgressBar.isAutoLoading = false
|
||||
}
|
||||
viewModel.loadRemoteBookList()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user