aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-04-26 20:14:42 -0700
committerScott Jackson <daneren2005@gmail.com>2013-04-26 20:14:42 -0700
commite6fcbc2dcc38e845017e7bf4280e982883fcc5fc (patch)
treea1cb95381a1f1e9643816bf8035521fedc7cb28c /subsonic-android
parent2718330401778f1420b91cb256c89da82047dcbd (diff)
downloaddsub-e6fcbc2dcc38e845017e7bf4280e982883fcc5fc.tar.gz
dsub-e6fcbc2dcc38e845017e7bf4280e982883fcc5fc.tar.bz2
dsub-e6fcbc2dcc38e845017e7bf4280e982883fcc5fc.zip
Fix orientation changes crashing
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
index 0074f30a..0a437af6 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
@@ -52,20 +52,25 @@ public class MainActivity extends SubsonicActivity {
pagerAdapter = new TabPagerAdapter(this, viewPager);
viewPager.setAdapter(pagerAdapter);
viewPager.setOnPageChangeListener(pagerAdapter);
-
+
addTab("Home", MainFragment.class, null);
addTab("Library", SelectArtistFragment.class, null);
addTab("Playlists", SelectPlaylistFragment.class, null);
}
-
+
+ @Override
+ public void onSaveInstanceState(Bundle savedInstanceState) {
+
+ }
+
@Override
protected void onPostCreate(Bundle bundle) {
super.onPostCreate(bundle);
-
+
getSupportActionBar().setDisplayHomeAsUpEnabled(false);
getSupportActionBar().setHomeButtonEnabled(false);
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
-
+
showInfoDialog();
}