pull/1903/head
kunfei 3 years ago
parent f3e46a130f
commit adaace696b
  1. 2
      app/src/main/java/io/legado/app/ui/book/remote/RemoteBookActivity.kt
  2. 2
      app/src/main/res/layout/activity_remote_book.xml

@ -41,7 +41,7 @@ class RemoteBookActivity : VMBaseActivity<ActivityRemoteBookBinding,RemoteBookVi
launch { launch {
viewModel.dataFlow.conflate().collect { remoteBooks -> viewModel.dataFlow.conflate().collect { remoteBooks ->
binding.refreshProgressBar.isAutoLoading = false binding.refreshProgressBar.isAutoLoading = false
binding.tvEmptyMsg.isGone = remoteBooks.isEmpty() binding.tvEmptyMsg.isGone = remoteBooks.isNotEmpty()
adapter.setItems(remoteBooks) adapter.setItems(remoteBooks)
} }
} }

@ -46,7 +46,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="16dp" android:layout_margin="16dp"
android:gravity="center" android:gravity="center"
android:visibility="visible" android:visibility="gone"
android:text="webDav book文件夹为空" android:text="webDav book文件夹为空"
app:layout_constraintTop_toBottomOf="@+id/title_bar" app:layout_constraintTop_toBottomOf="@+id/title_bar"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"

Loading…
Cancel
Save