title: Black Fragment after Transaction
body: <p>I have a FragmentActivity with a TabMenu. My menu opens a DialogFragment that subsequently call a method that refresh the first fragment in the TabMenu, but when I called this method the second Fragment (Second Section Tab) will become Blank. I can't understand why.</p>
  
  <p>This is the Fragment with its refresh method:</p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      View rootView = inflater.inflate(R.layout.fragment_home_company, container, false);
  
      ......
  
      observer = new HomeCompanyFragmentController(this, this.getActivity().getBaseContext());
  
  
      return rootView;
  }
  
  
  public void refresh(){
      FragmentManager manager = getActivity().getSupportFragmentManager();
      FragmentTransaction ft = manager.beginTransaction();
      Fragment newFragment = this;
      this.onDestroy();
      ft.remove(this);
      ft.replace(R.id.pager,newFragment);
      ft.addToBackStack(null);
      ft.commit();
  
  }
  </code></pre>
  
  <p>I followed this tutorial: <a href="http://developer.android.com/training/implementing-navigation/lateral.html" rel="nofollow">http://developer.android.com/training/implementing-navigation/lateral.html</a></p>
  
  <p>Here I return my fragment:</p>
  
  <pre><code> @Override
   public Fragment getItem(int i) {
          switch (i) {
              case 0:
  
                  if(homeFragment == null){
                      homeFragment = new HomeCompanyFragment();
                  }
  
                  return homeFragment;
  }
  </code></pre>