aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-13 17:19:19 -0700
committerGitHub <noreply@github.com>2017-07-13 17:19:19 -0700
commitc3f1fc6a8b3216442a018bb04843dfa68d738918 (patch)
tree1eb9dc13fc46e7ed98550f6edbdd015af9c106b8 /app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt
parent1d364a1f5a8322ce8fbe200fcc9f5a41f91b41e8 (diff)
downloadfrost-c3f1fc6a8b3216442a018bb04843dfa68d738918.tar.gz
frost-c3f1fc6a8b3216442a018bb04843dfa68d738918.tar.bz2
frost-c3f1fc6a8b3216442a018bb04843dfa68d738918.zip
Separate pref strings, add notifs control, fix searchview (#60)v1.2.2
* Separate pref strings and add notif controls * Add overlay toggle and minor cleanups * Fix search view
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.kt6
1 files changed, 6 insertions, 0 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 86cfcc16..b6105054 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Notifications.kt
@@ -55,6 +55,12 @@ fun SettingsActivity.getNotificationPrefs(): KPrefAdapterBuilder.() -> Unit = {
descRes = R.string.notification_all_accounts_desc
}
+ checkbox(R.string.notification_sound, { Prefs.notificationSound }, { Prefs.notificationSound = it })
+
+ checkbox(R.string.notification_vibrate, { Prefs.notificationVibrate }, { Prefs.notificationVibrate = it })
+
+ checkbox(R.string.notification_lights, { Prefs.notificationLights }, { Prefs.notificationLights = it })
+
plainText(R.string.notification_fetch_now) {
descRes = R.string.notification_fetch_now_desc
onClick = {