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