diff options
author | Allan Wang <me@allanwang.ca> | 2018-09-27 20:15:11 -0400 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2018-09-27 20:15:11 -0400 |
commit | 2e22f2ae6a963a2e00dc4b50b4a308c80ebe68e2 (patch) | |
tree | b0bfb3d1bede59bc6f54030c3b2ea51b3482ee28 /app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt | |
parent | 3aa44ba16e52ceaf37dd28a8075b302c42785526 (diff) | |
download | frost-2e22f2ae6a963a2e00dc4b50b4a308c80ebe68e2.tar.gz frost-2e22f2ae6a963a2e00dc4b50b4a308c80ebe68e2.tar.bz2 frost-2e22f2ae6a963a2e00dc4b50b4a308c80ebe68e2.zip |
Fix more lints
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt index 5de68e21..402322ad 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt @@ -20,13 +20,13 @@ fun SettingsActivity.getFeedPrefs(): KPrefAdapterBuilder.() -> Unit = { materialDialogThemed { title(R.string.newsfeed_sort) items(FeedSort.values().map { string(it.textRes) }) - itemsCallbackSingleChoice(item.pref, { _, _, which, _ -> + itemsCallbackSingleChoice(item.pref) { _, _, which, _ -> if (item.pref != which) { item.pref = which shouldRestartMain() } true - }) + } } } textGetter = { string(FeedSort(it).textRes) } |