优化
This commit is contained in:
1 parent
0e38e82a47
commit
9b57e60d3a
2 files changed
+2
-2
No files matched your search
@@ -41,7 +41,7 @@ class RemoteBookActivity : VMBaseActivity<ActivityRemoteBookBinding,RemoteBookVi
|
||||
launch {
|
||||
viewModel.dataFlow.conflate().collect { remoteBooks ->
|
||||
binding.refreshProgressBar.isAutoLoading = false
|
||||
binding.tvEmptyMsg.isGone = remoteBooks.isEmpty()
|
||||
binding.tvEmptyMsg.isGone = remoteBooks.isNotEmpty()
|
||||
adapter.setItems(remoteBooks)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user