aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2012-12-06 13:51:46 -0800
committerdaneren2005 <daneren2005@gmail.com>2012-12-06 13:51:46 -0800
commita353c003178509a7ab29a75df5fb8cda9ae407f7 (patch)
treedc28901e2d3c823a702e360c4d4db57047b547aa /subsonic-android
parent896a36011f4976f8caab058d02b66768306ba2e7 (diff)
downloaddsub-a353c003178509a7ab29a75df5fb8cda9ae407f7.tar.gz
dsub-a353c003178509a7ab29a75df5fb8cda9ae407f7.tar.bz2
dsub-a353c003178509a7ab29a75df5fb8cda9ae407f7.zip
String.isEmpty() isn't supported until 2.3, move to String.length() == 0 instead
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java
index 7e766985..c6edeef9 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java
@@ -468,8 +468,8 @@ public class SubsonicTabActivity extends SherlockActivity {
String genre = genreBox.getText().toString();
String startYear = startYearBox.getText().toString();
String endYear = endYearBox.getText().toString();
- getDownloadService().setShuffleParams(genre.isEmpty() ? null : genre,
- startYear.isEmpty() ? null : startYear, endYear.isEmpty() ? null : endYear);
+ getDownloadService().setShuffleParams((genre.length() == 0) ? null : genre,
+ (startYear.length() == 0) ? null : startYear, (endYear.length() == 0) ? null : endYear);
SharedPreferences.Editor editor = prefs.edit();
editor.putString(Constants.PREFERENCES_KEY_SHUFFLE_START_YEAR, startYear);