From 3ddc533f5b06c935b842869ae1db1245c658161a Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 28 Jun 2013 08:59:49 +0200 Subject: [PATCH] Swapped tab order in main activity. --- src/com/github/nutomic/controldlna/MainActivity.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/com/github/nutomic/controldlna/MainActivity.java b/src/com/github/nutomic/controldlna/MainActivity.java index 345474f..15e2d83 100644 --- a/src/com/github/nutomic/controldlna/MainActivity.java +++ b/src/com/github/nutomic/controldlna/MainActivity.java @@ -94,13 +94,13 @@ public class MainActivity extends SherlockFragmentActivity implements actionBar.setSelectedNavigationItem(position); } }); - - actionBar.addTab(actionBar.newTab() - .setText(R.string.title_renderer) - .setTabListener(this)); + actionBar.addTab(actionBar.newTab() .setText(R.string.title_server) .setTabListener(this)); + actionBar.addTab(actionBar.newTab() + .setText(R.string.title_renderer) + .setTabListener(this)); } @Override @@ -131,8 +131,8 @@ public class MainActivity extends SherlockFragmentActivity implements @Override public Fragment getItem(int position) { switch (position) { - case 0: return mRendererFragment; - case 1: return mServerFragment; + case 0: return mServerFragment; + case 1: return mRendererFragment; default: return null; } }