diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-01-15 22:05:17 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-01-15 22:05:17 -0800 |
commit | ed5b0191e2781ab137067df6dded8ec38c7e5e9f (patch) | |
tree | 42c663c6d6a13df8d59b2168d45248ccfafee11c | |
parent | 719811985eee20c0f98f4740347e8e66b490a4f9 (diff) | |
download | dsub-ed5b0191e2781ab137067df6dded8ec38c7e5e9f.tar.gz dsub-ed5b0191e2781ab137067df6dded8ec38c7e5e9f.tar.bz2 dsub-ed5b0191e2781ab137067df6dded8ec38c7e5e9f.zip |
Fix error if server is not 5.1+
-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 7342fc79..ba884503 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -680,7 +680,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter }
// If artist, we want to load the artist info to use later
- if(artist) {
+ if(artist && ServerInfo.checkServerVersion(context, "1.11")) {
artistInfo = musicService.getArtistInfo(id, refresh, context, this);
}
@@ -698,7 +698,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 || (ServerInfo.checkServerVersion(context, "1.11") && artistInfo != 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)) {
|