title: Fragment isVisible() true when not
body: <p>I have an Activity with a fragment container and two fragments used like "list fragment -> detail fragment"</p>
  
  <pre><code>private boolean isFirstFragmentAdded() {
      return getSupportFragmentManager().findFragmentByTag("FIRST_FRAGMENT_TAG") != null;
  }
  
  private boolean isFirstFragmentVisible() {
      return getSupportFragmentManager().findFragmentByTag("FIRST_FRAGMENT_TAG").isVisible();
  }
  
  private boolean isSecondFragmentAdded() {
      return getSupportFragmentManager().findFragmentByTag("SECOND_FRAGMENT_TAG") != null;
  }
  
  private boolean isSecondFragmentVisible() {
      return getSupportFragmentManager().findFragmentByTag("SECOND_FRAGMENT_TAG").isVisible();
  }
  
  private void addFirstFragment() {
      firstFragment = new FirstFragment();
      getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, firstFragment, "FIRST_FRAGMENT_TAG").commit();
  }
  
  private void showFirstFragment() {
      firstFragment = new FirstFragment();
      getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, firstFragment, "FIRST_FRAGMENT_TAG").commit();
  }
  
  private void addSecondFragment() {
      secondFragment = new SecondFragment();
      getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, secondFragment, "SECOND_FRAGMENT_TAG").commit();
  }
  
  private void showSecondFragment() {
      secondFragment = new SecondFragment();      getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, secondFragment, "SECOND_FRAGMENT_TAG").commit();
  }
  
  private void refreshVisibleFragment() {
      if (isFirstFragmentAdded() &amp;&amp; isFirstFragmentVisible()) {
          refreshFirstFragment();
      } else if (isSecondFragmentAdded() &amp;&amp; isSecondFragmentVisible()) {
          refreshSecondFragment();
      }
  }
  </code></pre>
  
  <p>the thing is that even when my SECOND fragment is visible the FIRST one always return <code>isVisible() == true</code>, so the second one never refresh. Already try remove, detach and nothing works: the first fragment always appears as added and visible. Also test it in tablet and phones and the same thing happens. Maybe I'm missing something but can't get it right so any help will be appreciated. Thx  </p>