Arello-Mobile / Moxy

Moxy is MVP library for Android

Home Page:https://github.com/Arello-Mobile/Moxy/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tab adapter : FragmentStateAdapter (ViewPager2) doesn't work with MvpFragment

GramLun opened this issue · comments

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:
image
And if function will inherits Fragment IDE says "Type mismatch" under my custom fragments:
image
Maybe I could use other class (not FragmentStateAdapter) which compatible with Moxy.
I dont know how to fix it, pls help!