title: DialogFragment created twice after orientation change
body: <p>Hi I'm currently trying to implement a tutorial dialog wherein one dialog will appear after the other one is dismissed. Now everything works just fine but after the orientation changes the dialog is then recreated twice. And more than that after I dismissed all the dialog and then try to change orientation once again the dialog will reappear which is annoying. Here's my code so far:</p>
  
  <pre><code>public class TutorialOne extends DialogFragment {
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.dialog_tutorial1, container, false);
  
          Button next = (Button) view.findViewById(R.id.btn_next);
          next.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  getDialog().dismiss();
              }
          });
          return view;
      }
  
      @Override
      public void onDetach() {
          super.onDetach();
          if(isRemoving()) {
              TutorialTwo tutorialTwo = new TutorialTwo();
              tutorialTwo.show(getActivity().getSupportFragmentManager(), "tutorial_2");
          }
      }
  
  
      @Override
      public Dialog onCreateDialog(Bundle savedInstanceState) {
          Dialog dialog = super.onCreateDialog(savedInstanceState);
          // request a window without the title
          dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
          dialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);
          return dialog;
      }
  
  }
  </code></pre>
  
  <p>Did I missed out on something here?</p>