fix menu for smallscreen mode

This commit is contained in:
Andrew Dolgov 2011-11-28 21:55:35 +03:00
parent 47e65d7b91
commit 9a8435a608

View File

@ -572,7 +572,8 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
m_menu.findItem(R.id.load_more_articles).setVisible(m_activeFeed != null && m_canLoadMore); m_menu.findItem(R.id.load_more_articles).setVisible(m_activeFeed != null && m_canLoadMore);
m_menu.findItem(R.id.show_all_articles).setVisible(m_activeFeed != null); m_menu.findItem(R.id.show_all_articles).setVisible(m_activeFeed != null);
} else { } else {
m_menu.findItem(R.id.load_more_articles).setVisible(m_activeFeed != null && m_selectedArticle == null && m_canLoadMore); m_menu.findItem(R.id.load_more_articles).setVisible(m_activeFeed != null && m_selectedArticle == null && m_canLoadMore &&
(!m_enableCats || m_activeCategory != null));
m_menu.findItem(R.id.show_all_articles).setVisible(m_activeFeed != null && m_selectedArticle == null); m_menu.findItem(R.id.show_all_articles).setVisible(m_activeFeed != null && m_selectedArticle == null);
} }