diff options
author | Allan Wang <me@allanwang.ca> | 2018-09-28 00:14:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 00:14:56 -0400 |
commit | f23791494030ce11c819e240ee627d6553e3d6d3 (patch) | |
tree | 31707f8684ad89d74aed1ba91520d066b2b98201 /app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt | |
parent | e10786003ecf16472c72b76eca100028b39634f2 (diff) | |
parent | 0d23df5fe082754f3579eb2b6e91c7fcfb1134b0 (diff) | |
download | frost-f23791494030ce11c819e240ee627d6553e3d6d3.tar.gz frost-f23791494030ce11c819e240ee627d6553e3d6d3.tar.bz2 frost-f23791494030ce11c819e240ee627d6553e3d6d3.zip |
Merge pull request #1110 from AllanWang/fix/misc
Fix/misc
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt b/app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt index 962e60ae..1f9411e4 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt @@ -36,11 +36,11 @@ fun SettingsActivity.getNotificationPrefs(): KPrefAdapterBuilder.() -> Unit = { materialDialogThemed { title(R.string.notification_frequency) items(texts) - itemsCallbackSingleChoice(options.indexOf(item.pref), { _, _, which, _ -> + itemsCallbackSingleChoice(options.indexOf(item.pref)) { _, _, which, _ -> item.pref = options[which] scheduleNotifications(item.pref) true - }) + } } } enabler = { @@ -154,8 +154,8 @@ fun SettingsActivity.getNotificationPrefs(): KPrefAdapterBuilder.() -> Unit = { if (BuildConfig.DEBUG) { plainText(R.string.reset_notif_epoch) { onClick = { - loadFbCookiesAsync { - it.map { NotificationModel(it.id) }.forEach { it.save() } + loadFbCookiesAsync { cookies -> + cookies.map { NotificationModel(it.id) }.forEach { it.save() } } } } |