@Subscribe
fun newSoneFound(newSoneFoundEvent: NewSoneFoundEvent) {
- if (!notificationManager.hasNotification("first-start-notification")) {
+ if (!notificationManager.hasFirstStartNotification()) {
notification.add(newSoneFoundEvent.sone)
notificationManager.addNotification(notification)
}
}
}
-
-private fun NotificationManager.hasNotification(id: String) =
- getNotification(id) != null