projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
đ Fix new-sone handler
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
notification
/
NewSoneHandler.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandler.kt
b/src/main/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandler.kt
index
a420f14
..
f47d456
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandler.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandler.kt
@@
-22,11
+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.sone.data.*
import net.pterodactylus.sone.notify.*
import net.pterodactylus.util.notify.*
+import javax.inject.*
/**
* Notification handler for ânew Sone discoveredâ events.
*/
/**
* Notification handler for ânew Sone discoveredâ events.
*/
-class NewSoneHandler
(private val notificationManager: NotificationManager,
private val notification: ListNotification<Sone>) {
+class NewSoneHandler
@Inject constructor(private val notificationManager: NotificationManager, @Named("newSone")
private val notification: ListNotification<Sone>) {
@Subscribe
fun newSoneFound(newSoneFoundEvent: NewSoneFoundEvent) {
@Subscribe
fun newSoneFound(newSoneFoundEvent: NewSoneFoundEvent) {