Item positions don't change so use default PagerAdapter.POSITION_UNCHANGED
@@ -17,7 +17,6 @@ package com.github.pockethub.android.ui.user
import android.os.Bundle
import androidx.fragment.app.Fragment
-import androidx.viewpager.widget.PagerAdapter
import com.github.pockethub.android.R
import com.github.pockethub.android.ui.base.FragmentPagerAdapter
import com.github.pockethub.android.ui.repo.RepositoryListFragment
@@ -50,10 +49,6 @@ class HomePagerAdapter(
return fragment
}
- override fun getItemPosition(`object`: Any): Int {
- return PagerAdapter.POSITION_NONE
- }
-
override fun getCount(): Int {
return if (defaultUser) 4 else 3
}
