This commit is contained in:
Milos Kozak 2021-02-08 16:17:24 +01:00
parent f1acf6449a
commit 3cb18b7d4e

View file

@ -9,7 +9,9 @@ import javax.inject.Inject
class DismissNotificationService : DaggerIntentService(DismissNotificationService::class.simpleName) {
@Inject lateinit var rxBus: RxBusWrapper
override fun onHandleIntent(intent: Intent) {
rxBus.send(EventDismissNotification(intent.getIntExtra("alertID", -1)))
override fun onHandleIntent(intent: Intent?) {
intent?.let {
rxBus.send(EventDismissNotification(intent.getIntExtra("alertID", -1)))
}
}
}