You can use getActivity().getSupportFragmentManager()
anytime you want to getSupportFragmentManager.
hierarchy is Activity -> fragment. fragment is not capable of directly calling getSupportFragmentManger but Activity can . Thus, you can use getActivity to call the current activity which the fragment is in and get getSupportFragmentManager()