diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-04-28 06:24:08 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-04-28 06:24:08 -0700 |
commit | 0232fb2571054f5174602b35d1870b5d38c9356b (patch) | |
tree | 1c6d08690a80fe48fda7c851b6d941f3d0b638f7 /src | |
parent | c2e05cf72da0f24ad33bd52075e2354ae954659f (diff) | |
download | dsub-0232fb2571054f5174602b35d1870b5d38c9356b.tar.gz dsub-0232fb2571054f5174602b35d1870b5d38c9356b.tar.bz2 dsub-0232fb2571054f5174602b35d1870b5d38c9356b.zip |
Fix crash on rotate
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index 1ff43b0d..948654c4 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -87,6 +87,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter super.onCreate(bundle);
if(bundle != null) {
entries = (List<MusicDirectory.Entry>) bundle.getSerializable(Constants.FRAGMENT_LIST);
+ albums = (List<MusicDirectory.Entry>) bundle.getSerializable(Constants.FRAGMENT_LIST2);
restoredInstance = true;
}
}
@@ -95,6 +96,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putSerializable(Constants.FRAGMENT_LIST, (Serializable) entries);
+ outState.putSerializable(Constants.FRAGMENT_LIST2, (Serializable) albums);
}
@Override
@@ -123,6 +125,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter }
if(entries == null) {
entries = (List<MusicDirectory.Entry>) args.getSerializable(Constants.FRAGMENT_LIST);
+ albums = (List<MusicDirectory.Entry>) args.getSerializable(Constants.FRAGMENT_LIST2);
}
}
|