Marti Serra Molina
Marti Serra Molina

Reputation: 473

Why can't I access getParentFragmentManager() from androidx.fragment.app.Fragment

I have been looking at the androidx.fragment.app.Fragment documentation and there is this method getParentFragmentManager(). However, in my Android project it doesn't recognize it. I am using kotlin and it says: Unresolved reference: getParentFragmentManager. Why does it happen?

Upvotes: 0

Views: 682

Answers (1)

Alesh17
Alesh17

Reputation: 386

Update your fragment ktx version to 1.2.5 and use parentFragmentManager like property

Upvotes: 1

Related Questions