mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 12:05:32 -04:00
universal7885: CameraLightSensor: Fix param
The param "Intent" can be null
This commit is contained in:
parent
1f8d0619cc
commit
4bd32cf76d
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ open class CameraLightSensorService : Service() {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
|
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||||
mContext = applicationContext
|
mContext = applicationContext
|
||||||
startForeground(50, PushNotification(), ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA)
|
startForeground(50, PushNotification(), ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA)
|
||||||
BatteryOptimization(mContext)
|
BatteryOptimization(mContext)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue