Updated to take a FragmentManager for initialization rather than an Activity (for child fragment managers)