From a36e2e8d0c9496ecefb5cc1ed525932c7a5f77d1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 29 Nov 2011 17:41:12 +0300 Subject: [PATCH] fix menu overload for new users, bump version --- AndroidManifest.xml | 4 ++-- src/org/fox/ttrss/MainActivity.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index aefb07ca..45586307 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="22" + android:versionName="0.1.21"> diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index 1fa4bfd8..929fba41 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -690,6 +690,7 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe public void initMainMenu() { if (m_menu != null) { if (m_sessionId != null) { + m_menu.setGroupVisible(R.id.menu_group_logged_in, true); m_menu.setGroupVisible(R.id.menu_group_logged_out, false); @@ -733,6 +734,9 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe } else { m_menu.setGroupVisible(R.id.menu_group_logged_in, false); + m_menu.setGroupVisible(R.id.menu_group_feeds, false); + m_menu.setGroupVisible(R.id.menu_group_headlines, false); + m_menu.setGroupVisible(R.id.menu_group_article, false); m_menu.setGroupVisible(R.id.menu_group_logged_out, true); }