diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-05-04 21:43:09 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-05-04 21:43:09 -0700 |
commit | a661acca1c84bb4b7158999fd0b51e7ef22757ca (patch) | |
tree | 2c2b3d06c43e8a937c484af1eb30b0bcd1772e68 /subsonic-android/src/github | |
parent | 25ca86a5e390a14e3040e53f745f5ae4d1f7b70b (diff) | |
download | dsub-a661acca1c84bb4b7158999fd0b51e7ef22757ca.tar.gz dsub-a661acca1c84bb4b7158999fd0b51e7ef22757ca.tar.bz2 dsub-a661acca1c84bb4b7158999fd0b51e7ef22757ca.zip |
Fix the rest of the back stack on orientation change
Diffstat (limited to 'subsonic-android/src/github')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/SubsonicActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicActivity.java index 0d004771..9881a8c7 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -105,6 +105,10 @@ public class SubsonicActivity extends SherlockFragmentActivity { currentFragment = (SubsonicFragment)fm.findFragmentById(ids[0]);
currentFragmentId = ids[0];
currentFragment.setPrimaryFragment(true);
+ for(int i = 1; i < size; i++) {
+ backStack.add((SubsonicFragment)fm.findFragmentById(ids[i]));
+ backStackId.add(ids[i]);
+ }
}
}
|