fix menu overload for new users, bump version

This commit is contained in:
Andrew Dolgov 2011-11-29 17:41:12 +03:00
parent 5d2959c1ba
commit a36e2e8d0c
2 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss" package="org.fox.ttrss"
android:versionCode="21" android:versionCode="22"
android:versionName="0.1.20"> android:versionName="0.1.21">
<uses-sdk android:minSdkVersion="8" /> <uses-sdk android:minSdkVersion="8" />
<!-- <supports-screens android:smallScreens="false" android:normalScreens="false" /> --> <!-- <supports-screens android:smallScreens="false" android:normalScreens="false" /> -->

View File

@ -690,6 +690,7 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
public void initMainMenu() { public void initMainMenu() {
if (m_menu != null) { if (m_menu != null) {
if (m_sessionId != null) { if (m_sessionId != null) {
m_menu.setGroupVisible(R.id.menu_group_logged_in, true); m_menu.setGroupVisible(R.id.menu_group_logged_in, true);
m_menu.setGroupVisible(R.id.menu_group_logged_out, false); m_menu.setGroupVisible(R.id.menu_group_logged_out, false);
@ -733,6 +734,9 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
} else { } else {
m_menu.setGroupVisible(R.id.menu_group_logged_in, false); 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); m_menu.setGroupVisible(R.id.menu_group_logged_out, true);
} }