diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-01-22 21:24:52 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-01-22 21:24:52 -0800 |
commit | e851fcaabb00cf2570de3553fcda6003181d18e6 (patch) | |
tree | 924dd269001603ac3830a3185aa35ee8f6418a22 /src/github | |
parent | f1fd9a58e97ffb71807391ceac6fe66aa160f054 (diff) | |
download | dsub-e851fcaabb00cf2570de3553fcda6003181d18e6.tar.gz dsub-e851fcaabb00cf2570de3553fcda6003181d18e6.tar.bz2 dsub-e851fcaabb00cf2570de3553fcda6003181d18e6.zip |
Default to song list if album's in genre is 0
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
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 {
|