Commit e0748597 authored by wanglei's avatar wanglei

...

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