Commit 516ada45 authored by wanglei's avatar wanglei

...

parent dfca6229
......@@ -55,6 +55,8 @@ class DocumentPageFragment() : BaseFragment<FragmentDocumentPageBinding>(), Docu
documentPresenter = DocumentPresenter(requireContext(), this, type, lifecycleScope)
initAdapter()
isInitialized = true
binding.swipeRefreshLayout.isRefreshing = true
}
override fun setListener() {
......@@ -107,7 +109,7 @@ class DocumentPageFragment() : BaseFragment<FragmentDocumentPageBinding>(), Docu
}
launch(Dispatchers.Main) {
binding.progressBar.visibility = View.GONE
binding.swipeRefreshLayout.isRefreshing = false
if (showEmpty) {
binding.llEmpty.isVisible = arrayList.isEmpty()
}
......
......@@ -64,10 +64,4 @@
</LinearLayout>
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
</FrameLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment