fix: 修复进入排行榜页面时全量加载所有页面导致页面卡顿的问题
Signed-off-by: chenjuntao <chenjuntao@ghzhushou.com>
This commit is contained in:
@ -124,7 +124,7 @@ class SubjectTabFragment : BaseFragment<Any>() {
|
||||
mBinding.subjectTabIndicator.setupWithViewPager(mBinding.subjectViewpager)
|
||||
}
|
||||
|
||||
val adapter = object : FragmentStatePagerAdapter(childFragmentManager) {
|
||||
val adapter = object : FragmentStatePagerAdapter(childFragmentManager, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) {
|
||||
override fun getItem(position: Int): Fragment {
|
||||
return fragments[position]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user