diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-01-20 11:09:38 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-01-20 11:09:38 -0800 |
commit | 43c6695b68e4dd349fb0d13a356a6c0893b3f96b (patch) | |
tree | 24f35731311742934d3551e2fe356de12b017670 /src/github | |
parent | eb061b6b1bfc365dd8fc5439d2bb00fa28a02bf0 (diff) | |
download | dsub-43c6695b68e4dd349fb0d13a356a6c0893b3f96b.tar.gz dsub-43c6695b68e4dd349fb0d13a356a6c0893b3f96b.tar.bz2 dsub-43c6695b68e4dd349fb0d13a356a6c0893b3f96b.zip |
Fix Show All Media
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 9 |
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);
}
}
|