From 4bd32cf76de6212cb521466b02cd27f243ced9c2 Mon Sep 17 00:00:00 2001 From: Soo-Hwan Na <69458352+roynatech2544@users.noreply.github.com> Date: Wed, 24 Nov 2021 06:58:22 +0900 Subject: [PATCH] universal7885: CameraLightSensor: Fix param The param "Intent" can be null --- .../eurekateam/cameralightsensor/CameraLightSensorService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/universal7885-common/apps/CameraLightSensor/src/com/eurekateam/cameralightsensor/CameraLightSensorService.kt b/universal7885-common/apps/CameraLightSensor/src/com/eurekateam/cameralightsensor/CameraLightSensorService.kt index 73ca387..eff2d1c 100755 --- a/universal7885-common/apps/CameraLightSensor/src/com/eurekateam/cameralightsensor/CameraLightSensorService.kt +++ b/universal7885-common/apps/CameraLightSensor/src/com/eurekateam/cameralightsensor/CameraLightSensorService.kt @@ -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)