From 00afabea262d17d820004fe1dca6e29eaccd56f6 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 5 Jun 2013 19:45:59 -0700 Subject: Fix for Madsonic not always setting parent id --- subsonic-android/src/github/daneren2005/dsub/view/EntryAdapter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'subsonic-android/src') diff --git a/subsonic-android/src/github/daneren2005/dsub/view/EntryAdapter.java b/subsonic-android/src/github/daneren2005/dsub/view/EntryAdapter.java index 1a4544e0..6f8c7c71 100644 --- a/subsonic-android/src/github/daneren2005/dsub/view/EntryAdapter.java +++ b/subsonic-android/src/github/daneren2005/dsub/view/EntryAdapter.java @@ -19,6 +19,7 @@ package github.daneren2005.dsub.view; import android.content.Context; +import android.util.Log; import java.util.List; import android.view.View; @@ -31,7 +32,7 @@ import github.daneren2005.dsub.util.ImageLoader; * @author Sindre Mehus */ public class EntryAdapter extends ArrayAdapter { - + private final static String TAG = EntryAdapter.class.getSimpleName(); private final Context activity; private final ImageLoader imageLoader; private final boolean checkable; @@ -54,7 +55,7 @@ public class EntryAdapter extends ArrayAdapter { MusicDirectory.Entry entry = getItem(position); if (entry.isDirectory()) { - if(entry.getParent() != null) { + if(entry.getArtist() != null) { AlbumView view; view = new AlbumView(activity); view.setAlbum(entry, imageLoader); -- cgit v1.2.3