getActivity().onBackPressed() getSupportFragmentManager().beginTransaction().remove(fragment).commit();