diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BLEScanService.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BLEScanService.java index 3a06664c8..54f334f08 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BLEScanService.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BLEScanService.java @@ -180,7 +180,7 @@ public class BLEScanService extends Service { private Notification createNotification(String content, int icon){ return new NotificationCompat - .Builder(this, GB.NOTIFICATION_CHANNEL_ID) + .Builder(this, GB.NOTIFICATION_CHANNEL_ID_SCAN_SERVICE) .setContentTitle(getString(R.string.scan_service_title)) .setContentText(content) .setSmallIcon(icon) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java index 7afd5aa42..a151a64ec 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java @@ -67,6 +67,7 @@ public class GB { public static final String NOTIFICATION_CHANNEL_ID = "gadgetbridge"; public static final String NOTIFICATION_CHANNEL_ID_CONNECTION_STATUS = "gadgetbridge connection status"; + public static final String NOTIFICATION_CHANNEL_ID_SCAN_SERVICE = "gadgetbridge_scan_service"; public static final String NOTIFICATION_CHANNEL_HIGH_PRIORITY_ID = "gadgetbridge_high_priority"; public static final String NOTIFICATION_CHANNEL_ID_TRANSFER = "gadgetbridge transfer"; public static final String NOTIFICATION_CHANNEL_ID_LOW_BATTERY = "low_battery"; @@ -121,6 +122,12 @@ public class GB { NotificationManager.IMPORTANCE_LOW); notificationManager.createNotificationChannel(channelConnwectionStatus); + NotificationChannel channelScanService = new NotificationChannel( + NOTIFICATION_CHANNEL_ID_SCAN_SERVICE, + context.getString(R.string.notification_channel_scan_service_name), + NotificationManager.IMPORTANCE_LOW); + notificationManager.createNotificationChannel(channelScanService); + NotificationChannel channelHighPriority = new NotificationChannel( NOTIFICATION_CHANNEL_HIGH_PRIORITY_ID, context.getString(R.string.notification_channel_high_priority_name), diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0c8493d32..b0718a409 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2695,4 +2695,5 @@ Scanning 1 device Scanning %d devices Scan service + Scan service