Skip to content

Commit

Permalink
Replace TextUtils.join with Kotlin joinToString
Browse files Browse the repository at this point in the history
  • Loading branch information
TacoTheDank committed Aug 3, 2021
1 parent 120a71d commit 67bffab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/taco/scoop/util/PreferenceHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -82,7 +81,7 @@ object PreferenceHelper {
sharedPreferences.edit {
putString(
getKey(R.string.key_blacklisted_packages),
TextUtils.join(",", packages)
packages.joinToString(",")
)
}
}
Expand Down

0 comments on commit 67bffab

Please sign in to comment.