diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-06-05 19:45:59 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-06-05 19:45:59 -0700 |
commit | 00afabea262d17d820004fe1dca6e29eaccd56f6 (patch) | |
tree | b727a710531ee1eebe94c0deeb419781130ca0b1 /subsonic-android/src | |
parent | 481164ef0ff4d41900b07470d424b842b3e4b98a (diff) | |
download | dsub-00afabea262d17d820004fe1dca6e29eaccd56f6.tar.gz dsub-00afabea262d17d820004fe1dca6e29eaccd56f6.tar.bz2 dsub-00afabea262d17d820004fe1dca6e29eaccd56f6.zip |
Fix for Madsonic not always setting parent id
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/view/EntryAdapter.java | 5 |
1 files changed, 3 insertions, 2 deletions
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<MusicDirectory.Entry> { - + 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> { 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); |