diff options
author | Allan Wang <me@allanwang.ca> | 2020-03-01 23:00:09 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-03-01 23:00:09 -0800 |
commit | e19c87ae367154bd5bbf59f080eee4976e64e2da (patch) | |
tree | 52f30b2d97dee998aabe46feffc1f4999275ec42 /app/src/main/kotlin/com/pitchedapps/frost/services | |
parent | 10d6cfdecb790e235e09641b18b4a10a645f87a0 (diff) | |
download | frost-e19c87ae367154bd5bbf59f080eee4976e64e2da.tar.gz frost-e19c87ae367154bd5bbf59f080eee4976e64e2da.tar.bz2 frost-e19c87ae367154bd5bbf59f080eee4976e64e2da.zip |
Format code
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/services')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/services/FrostNotifications.kt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/services/FrostNotifications.kt b/app/src/main/kotlin/com/pitchedapps/frost/services/FrostNotifications.kt index 562b1dd9..c4f71452 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/services/FrostNotifications.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/services/FrostNotifications.kt @@ -112,7 +112,12 @@ enum class NotificationType( * Returns the number of notifications generated, * or -1 if an error occurred */ - suspend fun fetch(context: Context, data: CookieEntity, prefs: Prefs, notifDao: NotificationDao): Int { + suspend fun fetch( + context: Context, + data: CookieEntity, + prefs: Prefs, + notifDao: NotificationDao + ): Int { val response = try { parser.parse(data.cookie) } catch (ignored: Exception) { @@ -306,7 +311,12 @@ data class FrostNotification( val notif: NotificationCompat.Builder ) { - fun withAlert(context: Context, enable: Boolean, ringtone: String, prefs: Prefs): FrostNotification { + fun withAlert( + context: Context, + enable: Boolean, + ringtone: String, + prefs: Prefs + ): FrostNotification { notif.setFrostAlert(context, enable, ringtone, prefs) return this } |