mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
f3e46a130f
commit
adaace696b
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:gravity="center"
|
||||
android:visibility="visible"
|
||||
android:visibility="gone"
|
||||
android:text="webDav book文件夹为空"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title_bar"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
Loading…
Reference in New Issue
Block a user