This method is deprecated.
This has been removed in favor of getParentFragmentManager() which
throws an IllegalStateException if the FragmentManager is null. Check if
isAdded() returns false to determine if the FragmentManager is
null.

This method is deprecated.
Instead of retaining the Fragment itself, use a non-retained Fragment and keep
retained state in a ViewModel attached to that Fragment. The ViewModel's constructor and
its onCleared() callback provide the signal for initial creation and final destruction of
the retained state.

This method is deprecated.
This has been renamed to getParentFragmentManager() to make it
clear that you are accessing the FragmentManager that contains this Fragment and not the
FragmentManager associated with child Fragments.

This method is deprecated.
Instead of retaining the Fragment itself, use a non-retained Fragment and keep
retained state in a ViewModel attached to that Fragment. The ViewModel's constructor and
its onCleared() callback provide the signal for initial creation and final destruction of
the retained state.

onCreateDialog

Override to build your own custom Dialog container. This is typically
used to show an AlertDialog instead of a generic Dialog; when doing so,
Fragment.onCreateView(LayoutInflater, ViewGroup, Bundle) does not need
to be implemented since the AlertDialog takes care of its own content.