aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-01-20 11:09:38 -0800
committerScott Jackson <daneren2005@gmail.com>2014-01-20 11:09:38 -0800
commit43c6695b68e4dd349fb0d13a356a6c0893b3f96b (patch)
tree24f35731311742934d3551e2fe356de12b017670 /src
parenteb061b6b1bfc365dd8fc5439d2bb00fa28a02bf0 (diff)
downloaddsub-43c6695b68e4dd349fb0d13a356a6c0893b3f96b.tar.gz
dsub-43c6695b68e4dd349fb0d13a356a6c0893b3f96b.tar.bz2
dsub-43c6695b68e4dd349fb0d13a356a6c0893b3f96b.zip
Fix Show All Media
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index eae48ca0..f88de757 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -427,7 +427,14 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
songs.addAll(parent.getChildren(false, true));
for (MusicDirectory.Entry dir : parent.getChildren(true, false)) {
MusicService musicService = MusicServiceFactory.getMusicService(context);
- getSongsRecursively(musicService.getMusicDirectory(dir.getId(), dir.getTitle(), refresh, context, this), songs);
+
+ MusicDirectory musicDirectory;
+ if(Util.isTagBrowsing(context) && !Util.isOffline(context)) {
+ musicDirectory = musicService.getAlbum(dir.getId(), dir.getTitle(), false, context, this);
+ } else {
+ musicDirectory = musicService.getMusicDirectory(dir.getId(), dir.getTitle(), false, context, this);
+ }
+ getSongsRecursively(musicDirectory, songs);
}
}