diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-13 14:26:06 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-13 14:26:06 -0700 |
commit | 068df51927a84e1d225bd5a61560f9cf672bc18d (patch) | |
tree | eca583a8410460a6fb9a2294e7e424b5ce840c73 /src | |
parent | dfc06a4cbd2319cca8141159ac5a14b43854c0cd (diff) | |
download | dsub-068df51927a84e1d225bd5a61560f9cf672bc18d.tar.gz dsub-068df51927a84e1d225bd5a61560f9cf672bc18d.tar.bz2 dsub-068df51927a84e1d225bd5a61560f9cf672bc18d.zip |
Fix specifying wrong parent when browse by tags is on
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java index 0d703472..5f98d489 100644 --- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -652,8 +652,14 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR }
} else {
List<String> parents = null;
- if(entry.getParent() != null) {
- parents = Arrays.asList(entry.getParent());
+ if(Util.isTagBrowsing(context)) {
+ if(entry.getAlbumId() != null) {
+ parents = Arrays.asList(entry.getAlbumId());
+ }
+ } else {
+ if(entry.getParent() != null) {
+ parents = Arrays.asList(entry.getParent());
+ }
}
musicService.setStarred(Arrays.asList(entry.getId()), null, null, parents, starred, null, context);
|