aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-01-17 14:23:46 -0800
committerScott Jackson <daneren2005@gmail.com>2015-01-17 14:23:46 -0800
commit82c49dc8fda740a06f39c227167e9845b85b7ba9 (patch)
treeaa2062a24c27d3bf832abea47338e5ef2af22c9f
parentb245d3850b5682cad2515be471dfa5b5975464a2 (diff)
downloaddsub-82c49dc8fda740a06f39c227167e9845b85b7ba9.tar.gz
dsub-82c49dc8fda740a06f39c227167e9845b85b7ba9.tar.bz2
dsub-82c49dc8fda740a06f39c227167e9845b85b7ba9.zip
Don't try to load artistInfo when offline either
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index 9587ff4e..0d160a59 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -690,7 +690,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
}
// If artist, we want to load the artist info to use later
- if(artist && ServerInfo.checkServerVersion(context, "1.11")) {
+ if(artist && ServerInfo.checkServerVersion(context, "1.11") && !Util.isOffline(context)) {
artistInfo = musicService.getArtistInfo(id, refresh, context, this);
}