Commit e0748597 authored by wanglei's avatar wanglei

...

parent 0971d4bf
......@@ -208,9 +208,7 @@ class DocumentFragment(
(requireActivity() as MainActivity).changeSelectUI(true)
if (currentPage is DocumentPageFragment) {
(currentPage as DocumentPageFragment).changeSelectUi(true)
}
currentPage.changeSelectUi(true)
} else {
binding.viewPager2.isUserInputEnabled = true
(requireActivity() as MainActivity).callback.isEnabled = false
......@@ -232,9 +230,7 @@ class DocumentFragment(
}
private fun changePageSelect(select: Boolean) {
if (currentPage is DocumentPageFragment) {
(currentPage as DocumentPageFragment).changItemSelect(select)
}
currentPage.changItemSelect(select)
}
......@@ -247,6 +243,7 @@ class DocumentFragment(
binding.ivPaixu.visibility = View.INVISIBLE
binding.ivXuanze.visibility = View.INVISIBLE
binding.llMainContent.visibility = View.INVISIBLE
binding.llEmpty.visibility=View.INVISIBLE
binding.flFanhui.visibility = View.VISIBLE
binding.editSearch.visibility = View.VISIBLE
......
......@@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.main.RecentFragment">
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_top"
......
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