diff options
author | daneren2005 <daneren2005@gmail.com> | 2012-12-06 13:51:46 -0800 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2012-12-06 13:51:46 -0800 |
commit | a353c003178509a7ab29a75df5fb8cda9ae407f7 (patch) | |
tree | dc28901e2d3c823a702e360c4d4db57047b547aa /subsonic-android | |
parent | 896a36011f4976f8caab058d02b66768306ba2e7 (diff) | |
download | dsub-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.java | 4 |
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);
|