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 1454da9..3912cfc 100755 --- a/universal7885-common/apps/CameraLightSensor/src/com/eurekateam/cameralightsensor/CameraLightSensorService.kt +++ b/universal7885-common/apps/CameraLightSensor/src/com/eurekateam/cameralightsensor/CameraLightSensorService.kt @@ -53,6 +53,7 @@ open class CameraLightSensorService : Service() { mContext!!.basePackageName, "CameraLightSensor", NotificationManager.IMPORTANCE_LOW ) + channel.isBlockable = true nm.createNotificationChannel(channel) val builder = NotificationCompat.Builder(mContext!!, mContext!!.basePackageName) val notificationIntent = Intent(mContext, CameraLightSensorService::class.java) @@ -61,7 +62,6 @@ open class CameraLightSensorService : Service() { notificationIntent, PendingIntent.FLAG_IMMUTABLE ) - //set builder.setContentIntent(contentIntent) builder.setSmallIcon(R.drawable.ic_brightness) builder.setContentTitle("Camera Light Sensor Service") @@ -429,4 +429,4 @@ open class CameraLightSensorService : Service() { } } } -} \ No newline at end of file +}