title: Update fragment on dialog fragment option selection
body: <p>I have fragment that on a component click pop-ups DialogFragment. This dialog fragment holds list of options. When an option from list is selected I want to notify fragment so I can run fields update procedure.
  I did something like this</p>
  
  <pre><code>@Override
  public void onClick(DialogInterface dialog, int item) {
       updateSharedPreference(item);
       Log.e("ProfilePersonaListDialog", "Click on dialog, inside onClick");
       OnCloseListDialogListener act = (OnCloseListDialogListener) getActivity();
       act.onDialogListSelection();
  
       dismiss();
  }
  </code></pre>
  
  <p>However this getActivity() calls on FragmentActivity and not the fragment that triggered the dialog fragment.
  I could kill currently open/running fragment and call a new instance that would get updated fields, but that is dirty solution that I would prefer to avoid.</p>
  
  <p>Any suggestions how to go about this update of fragment once option selected in dialog fragment?.</p>