Cannot Find Fragment that implements Listener
I have been trying to call a callback of Fragment A from Fragment B but I can seem to find an the appropriate Fragment A when I call onAttach of Fragment B.
More specifically, Fragment A file:
class CheckoutFragment : Fragment(), MyAdapterClickListener, FragmentB.CallBListener {
override fun testFunFromFragmentB(myVarA: String) { someFun(myVarA) }
[...]
// This is how I setup the navigation to FragmentB
override fun MyAdapterClick(myVarB: Parcel) {
val action =...