diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-03-04 09:48:43 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-03-04 09:48:43 -0800 |
commit | c5f8a9b0c9f9af95b191698a42b17fae878c0283 (patch) | |
tree | e43647ac7d6722e2b4ed57fd29f6681e9874ce53 | |
parent | e4cb076390ecdd2c60ceb3c8ea0f80ce836f0859 (diff) | |
download | dsub-c5f8a9b0c9f9af95b191698a42b17fae878c0283.tar.gz dsub-c5f8a9b0c9f9af95b191698a42b17fae878c0283.tar.bz2 dsub-c5f8a9b0c9f9af95b191698a42b17fae878c0283.zip |
Fix broken rotate
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index 515a6cd4..85c32af0 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -719,7 +719,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter // Show header if not album list type and not root and not artist
// For Subsonic 5.1+ display a header for artists with getArtistInfo data if it exists
View header = null;
- if(albumListType == null && !"root".equals(id) && (!artist || artistInfo != null) && entryAdapter == null) {
+ if(albumListType == null && !"root".equals(id) && (!artist || artistInfo != null)) {
header = createHeader();
// Only add header to entry list if we aren't going recreate album grid as root anyways
if(header != null && entryList != null && (!addAlbumHeader || entries.size() > 0)) {
@@ -729,7 +729,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter }
// Needs to be added here, GB crashes if you to try to remove the header view before adapter is set
- if(addAlbumHeader && entryAdapter == null) {
+ if(addAlbumHeader) {
if(entries.size() > 0 || playlistId != null || podcastId != null) {
entryList.addHeaderView(albumList);
} else {
|