Don't use StringUtils

This commit is contained in:
Martin Fietz 2015-12-02 12:33:56 +01:00
parent e6cfc71ebb
commit a777d7739e
1 changed files with 3 additions and 2 deletions

View File

@ -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<String> items) {
String str = StringUtils.join(items, ',');
String str = TextUtils.join(",", items);
prefs.edit()
.putString(PREF_HIDDEN_DRAWER_ITEMS, str)
.apply();