CategoryNavigationEntry: check if fragment is missing before enabling it
This commit is contained in:
parent
623aac676e
commit
4e4739af55
@ -183,16 +183,18 @@ public class MainActivity extends CommonActivity implements OnlineServices {
|
||||
if (m_activeFeed.is_cat) {
|
||||
FeedCategoriesFragment cats = (FeedCategoriesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_CATS);
|
||||
|
||||
if (cats != null) {
|
||||
ft.show(cats);
|
||||
|
||||
cats.setSelectedCategory(null);
|
||||
}
|
||||
} else {
|
||||
FeedsFragment feeds = (FeedsFragment) getSupportFragmentManager().findFragmentByTag(FRAG_FEEDS);
|
||||
|
||||
if (feeds != null) {
|
||||
ft.show(feeds);
|
||||
|
||||
feeds.setSelectedFeed(null);
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
findViewById(R.id.article_fragment).setVisibility(View.GONE);
|
||||
|
Loading…
Reference in New Issue
Block a user