From e0076d9d9dc54925ee34feb224766b9b322f57ab Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 28 Oct 2014 13:07:30 -0700 Subject: Fix no stars showing up when using Show Album --- .../daneren2005/dsub/fragments/SelectDirectoryFragment.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- cgit v1.2.3