getSupportFragmentManager déprécié
Right now, in Kotlin I use
val fragmentManager = [email protected]
or (prefer this one)
val fragmentManager = [email protected]
well if you still use Java I think the code is
FragmentManager manager = this.getParentFragmentManager();
Hope my answer can solve the task.
I recommended you to use Navigation now
android developer