diff options
author | Allan Wang <me@allanwang.ca> | 2020-02-29 19:29:09 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-02-29 19:29:09 -0800 |
commit | c5d38e5122bcb452b1e61ea6526434cf62e9da8c (patch) | |
tree | 3b31b15cd40fc81738592b8cb8af15fe23450d65 /app/src/main/kotlin/com/pitchedapps/frost/services/NotificationUtils.kt | |
parent | a93cdf52cc3b7eff1e2d4cf436b8f8dbc3cf14a2 (diff) | |
download | frost-c5d38e5122bcb452b1e61ea6526434cf62e9da8c.tar.gz frost-c5d38e5122bcb452b1e61ea6526434cf62e9da8c.tar.bz2 frost-c5d38e5122bcb452b1e61ea6526434cf62e9da8c.zip |
Update koin usage
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/services/NotificationUtils.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/services/NotificationUtils.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/services/NotificationUtils.kt b/app/src/main/kotlin/com/pitchedapps/frost/services/NotificationUtils.kt index 5f01dfd2..60cf874f 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/services/NotificationUtils.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/services/NotificationUtils.kt @@ -92,10 +92,9 @@ fun Context.frostNotification(id: String) = fun NotificationCompat.Builder.setFrostAlert( context: Context, enable: Boolean, - ringtone: String + ringtone: String, + prefs: Prefs ): NotificationCompat.Builder { - val prefs = Prefs.get() - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { setGroupAlertBehavior( if (enable) NotificationCompat.GROUP_ALERT_CHILDREN |