Tab adapter : FragmentStateAdapter (ViewPager2) doesn't work with MvpFragment
GramLun opened this issue · comments
Aleksandr Moskofidi commented
I'm trying to create TabAdapter class that inherits FragmentStateAdapter. So in function createFragment I need to return my framents which inherits MvpFragment, but it says:
And if function will inherits Fragment IDE says "Type mismatch" under my custom fragments:
Maybe I could use other class (not FragmentStateAdapter) which compatible with Moxy.
I dont know how to fix it, pls help!