From 67bffab6f28f7245659b4060c311a0469287b967 Mon Sep 17 00:00:00 2001 From: TacoTheDank Date: Tue, 3 Aug 2021 13:42:12 -0400 Subject: [PATCH] Replace TextUtils.join with Kotlin joinToString --- app/src/main/java/taco/scoop/util/PreferenceHelper.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/taco/scoop/util/PreferenceHelper.kt b/app/src/main/java/taco/scoop/util/PreferenceHelper.kt index 8f738fd..eb904af 100644 --- a/app/src/main/java/taco/scoop/util/PreferenceHelper.kt +++ b/app/src/main/java/taco/scoop/util/PreferenceHelper.kt @@ -3,7 +3,6 @@ package taco.scoop.util import android.content.Context import android.content.SharedPreferences import android.content.res.Resources -import android.text.TextUtils import androidx.annotation.StringRes import androidx.core.content.edit import androidx.preference.PreferenceManager @@ -82,7 +81,7 @@ object PreferenceHelper { sharedPreferences.edit { putString( getKey(R.string.key_blacklisted_packages), - TextUtils.join(",", packages) + packages.joinToString(",") ) } }