aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/services/NotificationUtils.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-02-29 19:29:09 -0800
committerAllan Wang <me@allanwang.ca>2020-02-29 19:29:09 -0800
commitc5d38e5122bcb452b1e61ea6526434cf62e9da8c (patch)
tree3b31b15cd40fc81738592b8cb8af15fe23450d65 /app/src/main/kotlin/com/pitchedapps/frost/services/NotificationUtils.kt
parenta93cdf52cc3b7eff1e2d4cf436b8f8dbc3cf14a2 (diff)
downloadfrost-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.kt5
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