fix navigation in portrait mode

This commit is contained in:
Andrew Dolgov 2012-06-24 14:50:14 +04:00
parent ea1094fb54
commit c4c6a21ea0
2 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
} }
findViewById(R.id.article_fragment).setVisibility(View.GONE); findViewById(R.id.article_fragment).setVisibility(View.GONE);
findViewById(R.id.feeds_fragment).setVisibility(View.VISIBLE);
ft.replace(R.id.headlines_fragment, new DummyFragment(), ""); ft.replace(R.id.headlines_fragment, new DummyFragment(), "");
} }
@ -211,6 +212,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
} else { } else {
findViewById(R.id.article_fragment).setVisibility(View.GONE); findViewById(R.id.article_fragment).setVisibility(View.GONE);
findViewById(R.id.feeds_fragment).setVisibility(View.VISIBLE);
ft.replace(R.id.headlines_fragment, new DummyFragment(), ""); ft.replace(R.id.headlines_fragment, new DummyFragment(), "");
} }

View File

@ -119,6 +119,7 @@ public class OfflineActivity extends FragmentActivity implements
ft.replace(R.id.headlines_fragment, new DummyFragment(), ""); ft.replace(R.id.headlines_fragment, new DummyFragment(), "");
findViewById(R.id.feeds_fragment).setVisibility(View.VISIBLE);
//findViewById(R.id.article_fragment).setVisibility(View.GONE); //findViewById(R.id.article_fragment).setVisibility(View.GONE);
ft.replace(R.id.article_fragment, new DummyFragment(), ""); ft.replace(R.id.article_fragment, new DummyFragment(), "");
@ -162,6 +163,7 @@ public class OfflineActivity extends FragmentActivity implements
} else { } else {
ft.replace(R.id.article_fragment, new DummyFragment(), ""); ft.replace(R.id.article_fragment, new DummyFragment(), "");
findViewById(R.id.feeds_fragment).setVisibility(View.VISIBLE);
//findViewById(R.id.article_fragment).setVisibility(View.GONE); //findViewById(R.id.article_fragment).setVisibility(View.GONE);
ft.replace(R.id.headlines_fragment, new DummyFragment(), ""); ft.replace(R.id.headlines_fragment, new DummyFragment(), "");