From e851fcaabb00cf2570de3553fcda6003181d18e6 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 22 Jan 2014 21:24:52 -0800 Subject: Default to song list if album's in genre is 0 --- src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index 93558a03..58cbf3fe 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -495,6 +495,9 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter result = service.getStarredList(context, this); } else if(("genres".equals(albumListType) && Util.checkServerVersion(context, "1.10.0")) || "years".equals(albumListType)) { result = service.getAlbumList(albumListType, albumListExtra, size, 0, context, this); + if(result.getChildrenSize() == 0 && "genres".equals(albumListType)) { + result = service.getSongsByGenre(albumListExtra, size, 0, context, this); + } } else if("genres".equals(albumListType)) { result = service.getSongsByGenre(albumListExtra, size, 0, context, this); } else { -- cgit v1.2.3