@Override
 public void onDismiss(DialogInterface dialog) {
   super.onDismiss(dialog);
   if (mListener != null) {
     mListener.onDetailDialogDismissed(mSelectedProxies);
   }
 }
  @Override
  public void onAttach(Activity activity) {
    super.onAttach(activity);
    if (!(activity instanceof OnMissionDetailListener)) {
      throw new IllegalStateException(
          "Parent activity must be an instance of " + OnMissionDetailListener.class.getName());
    }

    mListener = (OnMissionDetailListener) activity;
  }
 @Override
 public void onDetach() {
   super.onDetach();
   mListener = null;
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setStyle(DialogFragment.STYLE_NO_TITLE, 0);
 }