universal7885: CameraLightSensor: Fix param

The param "Intent" can be null
This commit is contained in:
Soo-Hwan Na 2021-11-24 06:58:22 +09:00 committed by roynatech2544
commit 4bd32cf76d
No known key found for this signature in database
GPG key ID: 9675C32163D88D30

View file

@ -243,7 +243,7 @@ open class CameraLightSensorService : Service() {
return null
}
override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
mContext = applicationContext
startForeground(50, PushNotification(), ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA)
BatteryOptimization(mContext)