/**
   * Public static constructor that creates fragment and passes a bundle with data into it when
   * adapter is created
   */
  public static EditGroupNameDialogFragment newInstance(ActiveGroup activeGroup, String groupId) {
    EditGroupNameDialogFragment editGroupNameDialogFragment = new EditGroupNameDialogFragment();
    Bundle bundle =
        EditGroupDialogFragment.newInstanceHelper(activeGroup, R.layout.dialog_edit_group, groupId);
    bundle.putString(Constants.KEY_GROUP_NAME, activeGroup.getGroupName());
    editGroupNameDialogFragment.setArguments(bundle);

    return editGroupNameDialogFragment;
  }
 /** Initialize instance variables with data from bundle */
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   mGroupName = getArguments().getString(Constants.KEY_GROUP_NAME);
 }