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