fix menu overload for new users, bump version
This commit is contained in:
parent
5d2959c1ba
commit
a36e2e8d0c
@ -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" /> -->
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user