X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FSoneLockedOnStartupHandler.kt;h=aa3a417aab33d8de417f6094f01e4e070c1c1760;hp=d6ec08f4d242d0a551654cc5b0c5c9686da4a9b8;hb=7cb0100ec63244e5f64654947206b610f96b006f;hpb=30e59fa669efe2f3a7cefaf6a25bb331d41bc777 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/SoneLockedOnStartupHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/SoneLockedOnStartupHandler.kt index d6ec08f..aa3a417 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/SoneLockedOnStartupHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/SoneLockedOnStartupHandler.kt @@ -22,15 +22,12 @@ import net.pterodactylus.sone.core.event.* import net.pterodactylus.sone.data.* import net.pterodactylus.sone.notify.* import net.pterodactylus.util.notify.* -import net.pterodactylus.util.template.* /** * Handler for [SoneLockedOnStartup][net.pterodactylus.sone.core.event.SoneLockedOnStartup] events * that adds the appropriate notification to the [NotificationManager]. */ -class SoneLockedOnStartupHandler(private val notificationManager: NotificationManager, template: Template) { - - private val notification = ListNotification("sone-locked-on-startup", "sones", template) +class SoneLockedOnStartupHandler(private val notificationManager: NotificationManager, private val notification: ListNotification) { @Subscribe @Suppress("UnstableApiUsage")