package xn.hxp.weidith

import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import androidx.viewbinding.ViewBinding
import com.rc.core.ui.fragment.BaseFragment

class TabFragmentPagerAdapter (
    fragmentManager: FragmentManager,
    private val pageParamArray: MutableList<out BaseFragment>
) : FragmentPagerAdapter(fragmentManager, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) {

    override fun getCount() = pageParamArray.size
    override fun getItem(position: Int) = pageParamArray[position]
}