onTabChanged does not always called
<p>I have root tabWidget and inside one of fragment - child tabWidget.</p>

<p>Fragment class is:</p>

<pre><code>public class TopFragment extends Fragment implements TabHost.OnTabChangeListener{
    private TabWidget mTabs;
</code></pre>

<p>tabhost setup and set listener in onCreateView():</p>

<pre><code>@Override 
public View onCreateView(...
...
    mTabs = (TabWidget)  view.findViewById(android.R.id.tabs);
    mTabHost = (TabHost) view.findViewById(R.id.tabhost_top);
    mTabHost.setOnTabChangedListener(this);
    mTabHost.setup();
</code></pre>

<p>in the class override onTabChange method:</p>

<pre><code>@Override public void onTabChanged(final String tabId) {
</code></pre>

<p>when currrent fragment is set as selected called:</p>

<pre><code>@Override public void setUserVisibleHint(boolean isVisibleToUser) {
    super.setUserVisibleHint(isVisibleToUser);
    if (isVisibleToUser == true) { 
        mTabs.setCurrentTab(0);
        ...
    }
</code></pre>

<p>Problem:</p>

<p>When fragment is set visibled(tap on tab) - on child tabWidget selected is 0 item index. </p>

<h1>1 try:</h1>

<ol>
<li>selected 0 index, tap on 2 or 3 - onTabChanged() NOT called</li>
<li>selected 0 index, tap on 1 - ok</li>
<li>selected 1 index, tap on 0 - ok</li>
<li>selected 0 index, tap on 2 or 3 - ok</li>
</ol>

<h1>2 try:</h1>

<ol>
<li>selected 0 index, tap on 2 - onTabChanged() NOT called</li>
<li>selected 0 index, tap on 2 - onTabChanged() NOT called</li>
<li>selected 0 index, tap on 3 - ok</li>
<li>selected 3 index, tap on 2 - ok</li>
</ol>

<p>Why on the first steps onTabChanged() was not called?</p>
