From 0d9b1278320f73a5900037f032c81480eccb7711 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 3 Feb 2012 13:05:57 +0300 Subject: [PATCH] hide unneeded fragments on logout --- src/org/fox/ttrss/MainActivity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index 63f52e67..ec672a21 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -1430,9 +1430,13 @@ public class MainActivity extends FragmentActivity implements OnlineServices { if (m_enableCats) { FeedCategoriesFragment frag = new FeedCategoriesFragment(); ft.replace(R.id.cats_fragment, frag); + + findViewById(R.id.cats_fragment).setVisibility(View.VISIBLE); } else { FeedsFragment frag = new FeedsFragment(); ft.replace(R.id.feeds_fragment, frag); + + findViewById(R.id.feeds_fragment).setVisibility(View.VISIBLE); } try { @@ -1674,6 +1678,11 @@ public class MainActivity extends FragmentActivity implements OnlineServices { findViewById(R.id.loading_progress).setVisibility(View.GONE); + findViewById(R.id.feeds_fragment).setVisibility(View.GONE); + findViewById(R.id.cats_fragment).setVisibility(View.GONE); + findViewById(R.id.headlines_fragment).setVisibility(View.GONE); + findViewById(R.id.article_fragment).setVisibility(View.GONE); + initMainMenu(); }