title: setArguments and getArguments return empty string
body: <p>When I'm using bundle to send values to the fragment it always returns empty values</p>
  <p>This is my dialog fragment</p>
  <pre class="lang-java prettyprint-override"><code>public class CustomDialog extends DialogFragment {
  
      private static final String Tag = &quot;CustomDialog&quot;;
      private static final String DIALOG_MESSAGE_1 = &quot;title_text&quot;;
      private static final String DIALOG_MESSAGE_2 = &quot;message_text&quot;;
      private String title_text, message_text;
  
      public static CustomDialog newInstance(int num, String title_text, String message_text){
          CustomDialog dialogFragment = new CustomDialog();
          Bundle args = new Bundle();
          args.putInt(&quot;num&quot;, num);
          args.putString(DIALOG_MESSAGE_1, title_text);
          args.putString(DIALOG_MESSAGE_2, message_text);
          Log.e(&quot;test&quot;, args.getString(DIALOG_MESSAGE_2));
          dialogFragment.setArguments(args);
          return dialogFragment;
      }
      
      @Override
      public Dialog onCreateDialog(Bundle savedInstanceState) {
          Bundle bundle = getArguments();
          if (bundle != null) {
              title_text = bundle.getString(DIALOG_MESSAGE_1);
              message_text = bundle.getString(DIALOG_MESSAGE_2);
          }
  
          return new AlertDialog.Builder(getActivity())...create();
      }
  }
  </code></pre>
  <p>This is how I'm calling the dialog</p>
  <pre class="lang-java prettyprint-override"><code>    private void doLogOut(){
          CustomDialog dialog = new CustomDialog();
          Bundle bundle = new Bundle();
          String title_text = getContext().getResources().getString(R.string.logout_header);
          String message_text = getContext().getResources().getString(R.string.logout_message);
          DialogFragment dialogFrag = CustomDialog.newInstance(1, title_text, message_text);
          dialogFrag.setTargetFragment(this, 1);
          dialogFrag.setArguments(bundle);
          dialogFrag.show(getParentFragmentManager().beginTransaction(), &quot;dialog&quot;);
      }
  </code></pre>
  <p>But the values always are empty.</p>