break tabs a bit

This commit is contained in:
Andrew Dolgov 2011-12-07 09:58:32 +03:00
parent bd6fd2e92f
commit df3be3d4c6

View File

@ -1043,12 +1043,6 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
m_selectedArticle = null; m_selectedArticle = null;
if (m_bar != null && m_feedTab != null) {
m_bar.removeAllTabs();
m_bar.addTab(m_rootTab);
m_feedTab = null;
}
initMainMenu(); initMainMenu();
refreshFeeds(); refreshFeeds();
@ -1872,6 +1866,9 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
public void onTabSelected(Tab arg0, android.app.FragmentTransaction arg1) { public void onTabSelected(Tab arg0, android.app.FragmentTransaction arg1) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
if (m_catTab != null) m_bar.removeTab(m_catTab);
if (m_feedTab != null) m_bar.removeTab(m_feedTab);
} }
@Override @Override
@ -1896,7 +1893,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
public void onTabReselected(Tab tab, public void onTabReselected(Tab tab,
android.app.FragmentTransaction _ft) { android.app.FragmentTransaction _ft) {
closeArticle(); //closeArticle();
} }
@Override @Override
@ -1921,6 +1918,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
public void onTabUnselected(Tab tab, public void onTabUnselected(Tab tab,
android.app.FragmentTransaction _ft) { android.app.FragmentTransaction _ft) {
if (m_selectedArticle != null)
closeArticle(); closeArticle();
findViewById(R.id.feeds_fragment).setVisibility(View.GONE); findViewById(R.id.feeds_fragment).setVisibility(View.GONE);
@ -1930,6 +1928,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
initMainMenu(); initMainMenu();
refreshCategories(); refreshCategories();
} }
} }