diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-01-20 11:18:14 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-01-20 11:18:14 -0800 |
commit | 45a8c652b81e2e357c8537f7bb21bd671ce67893 (patch) | |
tree | f4cf035966e9f36727e22f248b2ae82b456fed12 /src | |
parent | 43c6695b68e4dd349fb0d13a356a6c0893b3f96b (diff) | |
download | dsub-45a8c652b81e2e357c8537f7bb21bd671ce67893.tar.gz dsub-45a8c652b81e2e357c8537f7bb21bd671ce67893.tar.bz2 dsub-45a8c652b81e2e357c8537f7bb21bd671ce67893.zip |
Fix play now/cache from artist level
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectArtistFragment.java | 1 | ||||
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java b/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java index df4e2d95..909165b7 100644 --- a/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java @@ -51,6 +51,7 @@ public class SelectArtistFragment extends SubsonicFragment implements AdapterVie artists = (List<Artist>) bundle.getSerializable(Constants.FRAGMENT_LIST);
musicFolders = (List<MusicFolder>) bundle.getSerializable(Constants.FRAGMENT_LIST2);
}
+ artist = true;
}
@Override
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java index 1504b7a4..8e9dbbb9 100644 --- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -709,7 +709,14 @@ public class SubsonicFragment extends Fragment { }
for (MusicDirectory.Entry dir : parent.getChildren(true, false)) {
MusicService musicService = MusicServiceFactory.getMusicService(context);
- getSongsRecursively(musicService.getMusicDirectory(dir.getId(), dir.getTitle(), false, 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);
}
}
|