mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-09 21:02:53 +00:00
change service notif to AirPods not connected
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user