title: How to change fragment in navigation drawer from dialogFragment while using tab layout as parent?
body: <p>I am having issues after adding tab layout to my fragment, changing fragment from a fragment dialog does no action neither throws exception.</p>
  
  <p>code in fragment containing the tab layout:</p>
  
  <pre><code>    public void addFragment(tabChildFragment, String title) {
          mFragmentList.add(fragment);
          mFragmentTitleList.add(title);
          fragment.setType(title);
          fragment.setParentView((ViewGroup)getView().getParent());
  
      }
  </code></pre>
  
  <p>code in tabChildFragment:</p>
  
  <pre><code>public void setParentView(ViewGroup parentView) {
      this.parentView = parentView;
  }
  
  gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
                                              @Override
                                              public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
                                                  DialogFrag dialog = new DialogFrag(new DismissHandler(),parentView);
                                                  FragmentTransaction ft = getFragmentManager().beginTransaction();
                                                  dialog.show(ft, null);}}
  </code></pre>
  
  <p>And the DialogFrag code that should replace the tabLayoutFragment with the Login Fragment:</p>
  
  <pre><code>Fragment myFragment = new Login();
                  FragmentManager fragmentManager = getFragmentManager();
  
                  fragmentManager.beginTransaction()
                          .replace(parentView.getId(), myFragment)
                          .commit();
                  dismiss();
  </code></pre>