From f77c52b68219bf2ed51ea397c62c8a229c089d53 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 25 Feb 2015 19:22:37 -0800 Subject: #459 Fix empty podcast/playlist pointlessly using HeaderGridView --- src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index b8a1006b..515a6cd4 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -730,7 +730,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter // Needs to be added here, GB crashes if you to try to remove the header view before adapter is set if(addAlbumHeader && entryAdapter == null) { - if(entries.size() > 0) { + if(entries.size() > 0 || playlistId != null || podcastId != null) { entryList.addHeaderView(albumList); } else { ViewGroup rootGroup = (ViewGroup) rootView.findViewById(R.id.select_album_layout); -- cgit v1.2.3