aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-06-12 13:49:48 -0700
committerScott Jackson <daneren2005@gmail.com>2013-06-12 13:49:48 -0700
commitf3dde60ac3f6fac612360732717f1411bc854059 (patch)
tree9074373127dd52b7052c8a2fe91703fc4043be8e /subsonic-android
parent43c8f9f09a097cf75778ec3aa18a686fedae1989 (diff)
downloaddsub-f3dde60ac3f6fac612360732717f1411bc854059.tar.gz
dsub-f3dde60ac3f6fac612360732717f1411bc854059.tar.bz2
dsub-f3dde60ac3f6fac612360732717f1411bc854059.zip
Add blank option to genre list
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index f417290b..4639ac61 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -403,6 +403,7 @@ public class SubsonicFragment extends SherlockFragment {
@Override
protected void done(final List<Genre> genres) {
List<String> names = new ArrayList<String>();
+ names.add("Blank");
for(Genre genre: genres) {
names.add(genre.getName());
}
@@ -455,6 +456,9 @@ public class SubsonicFragment extends SherlockFragment {
String genre;
if(useCombo) {
genre = genreCombo.getText().toString();
+ if(genre == null || "Blank".equals(genre)) {
+ genre = "";
+ }
} else {
genre = genreBox.getText().toString();
}