Merge pull request #2637 from MilosKozak/AdrianLxM-patch-1

fix Java -> Kotlin nullability issue
This commit is contained in:
Milos Kozak 2020-05-11 16:59:51 +02:00 committed by GitHub
commit 237d40afe6
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
}
}
}