aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-13 14:26:06 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-13 14:26:06 -0700
commit068df51927a84e1d225bd5a61560f9cf672bc18d (patch)
treeeca583a8410460a6fb9a2294e7e424b5ce840c73 /src
parentdfc06a4cbd2319cca8141159ac5a14b43854c0cd (diff)
downloaddsub-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.java10
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);