Commit 516ada45 authored by wanglei's avatar wanglei

...

parent dfca6229
...@@ -55,6 +55,8 @@ class DocumentPageFragment() : BaseFragment<FragmentDocumentPageBinding>(), Docu ...@@ -55,6 +55,8 @@ class DocumentPageFragment() : BaseFragment<FragmentDocumentPageBinding>(), Docu
documentPresenter = DocumentPresenter(requireContext(), this, type, lifecycleScope) documentPresenter = DocumentPresenter(requireContext(), this, type, lifecycleScope)
initAdapter() initAdapter()
isInitialized = true isInitialized = true
binding.swipeRefreshLayout.isRefreshing = true
} }
override fun setListener() { override fun setListener() {
...@@ -107,7 +109,7 @@ class DocumentPageFragment() : BaseFragment<FragmentDocumentPageBinding>(), Docu ...@@ -107,7 +109,7 @@ class DocumentPageFragment() : BaseFragment<FragmentDocumentPageBinding>(), Docu
} }
launch(Dispatchers.Main) { launch(Dispatchers.Main) {
binding.progressBar.visibility = View.GONE binding.swipeRefreshLayout.isRefreshing = false
if (showEmpty) { if (showEmpty) {
binding.llEmpty.isVisible = arrayList.isEmpty() binding.llEmpty.isVisible = arrayList.isEmpty()
} }
......
...@@ -64,10 +64,4 @@ ...@@ -64,10 +64,4 @@
</LinearLayout> </LinearLayout>
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
</FrameLayout> </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