fix Java -> Kotlin nullability issue

This commit is contained in:
AdrianLxM 2020-05-11 13:34:10 +02:00 committed by GitHub
parent cc53aff3d0
commit 28dd3dedac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,9 +50,9 @@ class DummyService : DaggerService() {
stopForeground(true)
}
override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
super.onStartCommand(intent, flags, startId)
startForeground(notificationHolder.notificationID, notificationHolder.notification)
return Service.START_STICKY
}
}
}