From 416ae1e974f4a7c5b84dd51bbfcfed8e05a84b93 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 6 Jan 2025 20:15:07 +0100 Subject: [PATCH] change service notif to AirPods not connected --- .../main/java/me/kavishdevar/aln/services/AirPodsService.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsService.kt b/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsService.kt index c2494a2..b1efcc1 100644 --- a/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsService.kt +++ b/android/app/src/main/java/me/kavishdevar/aln/services/AirPodsService.kt @@ -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()