FragmentManager is deprecated. Is there an alternative or what can I do now?
PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocomplet
I used parentFragmentManager instead of fragmentManager.
(If you are using androidx Fragment.)
https://developer.android.com/jetpack/androidx/releases/fragment#1.2.0
getFragmentManager() deprecation: The
getFragmentManager()andrequireFragmentManager()methods onFragmenthave been deprecated and replaced with a singlegetParentFragmentManager()method, which returns the non-nullFragmentManagertheFragmentis added to (you can useisAdded()to determine if it is safe to call).