diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-04-26 20:14:42 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-04-26 20:14:42 -0700 |
commit | e6fcbc2dcc38e845017e7bf4280e982883fcc5fc (patch) | |
tree | a1cb95381a1f1e9643816bf8035521fedc7cb28c /subsonic-android | |
parent | 2718330401778f1420b91cb256c89da82047dcbd (diff) | |
download | dsub-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.java | 13 |
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();
}
|