From a777d7739e6ce61667535da81d1c020d844d6bf7 Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Wed, 2 Dec 2015 12:33:56 +0100 Subject: [PATCH] Don't use StringUtils --- .../danoeh/antennapod/core/preferences/UserPreferences.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java b/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java index abb5f1f99..5918a2d0d 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java +++ b/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java @@ -8,6 +8,7 @@ import android.content.SharedPreferences; import android.os.SystemClock; import android.preference.PreferenceManager; import android.support.v4.app.NotificationCompat; +import android.text.TextUtils; import android.util.Log; import org.apache.commons.lang3.StringUtils; @@ -388,7 +389,7 @@ public class UserPreferences { public static void setAutodownloadSelectedNetworks(String[] value) { prefs.edit() - .putString(PREF_AUTODL_SELECTED_NETWORKS, StringUtils.join(value, ',')) + .putString(PREF_AUTODL_SELECTED_NETWORKS, TextUtils.join(",", value)) .apply(); } @@ -430,7 +431,7 @@ public class UserPreferences { } public static void setHiddenDrawerItems(List items) { - String str = StringUtils.join(items, ','); + String str = TextUtils.join(",", items); prefs.edit() .putString(PREF_HIDDEN_DRAWER_ITEMS, str) .apply();