|
|
@@ -51,6 +51,7 @@ import io.legado.app.utils.showDialogFragment
|
|
|
import io.legado.app.utils.viewbindingdelegate.viewBinding
|
|
|
import kotlinx.coroutines.Dispatchers
|
|
|
import kotlinx.coroutines.Job
|
|
|
+import kotlinx.coroutines.delay
|
|
|
import kotlinx.coroutines.flow.catch
|
|
|
import kotlinx.coroutines.flow.conflate
|
|
|
import kotlinx.coroutines.flow.flowOn
|
|
|
@@ -303,6 +304,7 @@ class BookshelfFragment2() : BaseBookshelfFragment(R.layout.fragment_bookshelf2)
|
|
|
booksAdapter.updateItems()
|
|
|
binding.emptyView.isGone = getItemCount() > 0
|
|
|
binding.refreshLayout.isEnabled = enableRefresh && getItemCount() > 0
|
|
|
+ delay(500)
|
|
|
}
|
|
|
}
|
|
|
}
|