From 9a8435a60895788301d2f265e8e1ca251c17fa2d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 28 Nov 2011 21:55:35 +0300 Subject: [PATCH] fix menu for smallscreen mode --- src/org/fox/ttrss/MainActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index 678310f8..f7467ce9 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -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.show_all_articles).setVisible(m_activeFeed != null); } 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); }