FragmentManager is deprecated. Is there an alternative or what can I do now?
FragmentManager
PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocomplet
You should use the Fragment class from Android Support library instead.
android.app.Fragment was deprecated in API level 28. Use the Support Library Fragment for consistent behavior across all devices and access to Lifecycle.
Use android.support.v4.app.Fragment instead.