aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-10-28 13:07:30 -0700
committerScott Jackson <daneren2005@gmail.com>2014-10-28 13:07:30 -0700
commite0076d9d9dc54925ee34feb224766b9b322f57ab (patch)
tree284c9bf8a32b23153807d22021f51a2e04a8a8d4 /src/github
parent1470c813504c1bac2e5ece14cc2bfa1b7c0cad25 (diff)
downloaddsub-e0076d9d9dc54925ee34feb224766b9b322f57ab.tar.gz
dsub-e0076d9d9dc54925ee34feb224766b9b322f57ab.tar.bz2
dsub-e0076d9d9dc54925ee34feb224766b9b322f57ab.zip
Fix no stars showing up when using Show Album
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index 4d273f6c..54d88746 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -483,6 +483,15 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
// Update the fragment pointers so other stuff works correctly
SelectDirectoryFragment.this.id = dir.getId();
SelectDirectoryFragment.this.name = dir.getName();
+ } else if(id != null && directory == null) {
+ // View Album, try to lookup parent to get a complete entry to use for starring
+ MusicDirectory parentDir = getMusicDirectory(dir.getParent(), name, refresh, service, this);
+ for(Entry child: parentDir.getChildren()) {
+ if(id.equals(child.getId())) {
+ directory = child;
+ break;
+ }
+ }
}
return dir;