From 882824190c2432cada6f8a51fb5e0cbcdf9f6236 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 28 May 2013 13:12:50 +0400 Subject: [PATCH] offline: fix crash on missing menu item --- src/org/fox/ttrss/offline/OfflineFeedsActivity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/org/fox/ttrss/offline/OfflineFeedsActivity.java b/src/org/fox/ttrss/offline/OfflineFeedsActivity.java index 0a7b3799..2601103e 100644 --- a/src/org/fox/ttrss/offline/OfflineFeedsActivity.java +++ b/src/org/fox/ttrss/offline/OfflineFeedsActivity.java @@ -173,9 +173,7 @@ public class OfflineFeedsActivity extends OfflineActivity implements OfflineHead } else { m_menu.setGroupVisible(R.id.menu_group_feeds, (ff != null && ff.isAdded()) || (cf != null && cf.isAdded())); //m_menu.setGroupVisible(R.id.menu_group_article, af != null && af.isAdded()); - m_menu.setGroupVisible(R.id.menu_group_headlines, hf != null && hf.isAdded()); - - m_menu.findItem(R.id.update_headlines).setVisible(false); + m_menu.setGroupVisible(R.id.menu_group_headlines, hf != null && hf.isAdded()); } /* m_menu.setGroupVisible(R.id.menu_group_feeds, (ff != null && ff.isAdded()) || (cf != null && cf.isAdded()));