Don't use StringUtils
This commit is contained in:
parent
e6cfc71ebb
commit
a777d7739e
|
@ -8,6 +8,7 @@ import android.content.SharedPreferences;
|
||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
import android.support.v4.app.NotificationCompat;
|
import android.support.v4.app.NotificationCompat;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
@ -388,7 +389,7 @@ public class UserPreferences {
|
||||||
|
|
||||||
public static void setAutodownloadSelectedNetworks(String[] value) {
|
public static void setAutodownloadSelectedNetworks(String[] value) {
|
||||||
prefs.edit()
|
prefs.edit()
|
||||||
.putString(PREF_AUTODL_SELECTED_NETWORKS, StringUtils.join(value, ','))
|
.putString(PREF_AUTODL_SELECTED_NETWORKS, TextUtils.join(",", value))
|
||||||
.apply();
|
.apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -430,7 +431,7 @@ public class UserPreferences {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setHiddenDrawerItems(List<String> items) {
|
public static void setHiddenDrawerItems(List<String> items) {
|
||||||
String str = StringUtils.join(items, ',');
|
String str = TextUtils.join(",", items);
|
||||||
prefs.edit()
|
prefs.edit()
|
||||||
.putString(PREF_HIDDEN_DRAWER_ITEMS, str)
|
.putString(PREF_HIDDEN_DRAWER_ITEMS, str)
|
||||||
.apply();
|
.apply();
|
||||||
|
|
Loading…
Reference in New Issue