change service notif to AirPods not connected

This commit is contained in:
Paul
2025-01-06 20:15:07 +01:00
parent 7ed8f9b09c
commit 416ae1e974

View File

@@ -148,8 +148,7 @@ class AirPodsService: Service() {
notificationManager.createNotificationChannel(notificationChannel)
val notification = NotificationCompat.Builder(this, "background_service_status")
.setSmallIcon(R.drawable.airpods)
.setContentTitle("AirPods Service")
.setContentText("Service is running in the background")
.setContentTitle("AirPods are not connected")
.setCategory(Notification.CATEGORY_SERVICE)
.setPriority(NotificationCompat.PRIORITY_LOW)
.build()
@@ -287,8 +286,7 @@ class AirPodsService: Service() {
} else {
updatedNotification = NotificationCompat.Builder(this, "background_service_status")
.setSmallIcon(R.drawable.airpods)
.setContentTitle("AirPods Service")
.setContentText("Service is running in the background!")
.setContentTitle("AirPods are not connected")
.setCategory(Notification.CATEGORY_SERVICE)
.setPriority(NotificationCompat.PRIORITY_LOW)
.build()