fix NPE
This commit is contained in:
parent
f1acf6449a
commit
3cb18b7d4e
1 changed files with 4 additions and 2 deletions
|
@ -9,7 +9,9 @@ import javax.inject.Inject
|
||||||
class DismissNotificationService : DaggerIntentService(DismissNotificationService::class.simpleName) {
|
class DismissNotificationService : DaggerIntentService(DismissNotificationService::class.simpleName) {
|
||||||
@Inject lateinit var rxBus: RxBusWrapper
|
@Inject lateinit var rxBus: RxBusWrapper
|
||||||
|
|
||||||
override fun onHandleIntent(intent: Intent) {
|
override fun onHandleIntent(intent: Intent?) {
|
||||||
|
intent?.let {
|
||||||
rxBus.send(EventDismissNotification(intent.getIntExtra("alertID", -1)))
|
rxBus.send(EventDismissNotification(intent.getIntExtra("alertID", -1)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue