Merge pull request #647 from Inhishonor/notif-improvements

Improvements to the worker and message notifications
This commit is contained in:
octoshrimpy
2026-01-11 12:27:57 -05:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
@@ -98,11 +98,12 @@ class NotificationManagerImpl @Inject constructor(
.setContentText(context.getString(R.string.notification_foreground_worker_text)) .setContentText(context.getString(R.string.notification_foreground_worker_text))
.setShowWhen(false) .setShowWhen(false)
.setWhen(System.currentTimeMillis()) .setWhen(System.currentTimeMillis())
.setSmallIcon(R.drawable.ic_notification) .setSmallIcon(R.drawable.ic_notification_worker)
.setColor(colors.theme().theme) .setColor(colors.theme().theme)
.setCategory(NotificationCompat.CATEGORY_MESSAGE) .setCategory(NotificationCompat.CATEGORY_MESSAGE)
.setPriority(NotificationCompat.PRIORITY_MIN) .setPriority(NotificationCompat.PRIORITY_MIN)
.setOngoing(true) .setOngoing(true)
.setSilent(true)
.build() .build()
/** /**
@@ -163,6 +164,7 @@ class NotificationManagerImpl @Inject constructor(
.setSmallIcon(R.drawable.ic_notification) .setSmallIcon(R.drawable.ic_notification)
.setNumber(messages.size) .setNumber(messages.size)
.setAutoCancel(true) .setAutoCancel(true)
.setOnlyAlertOnce(true)
.setContentIntent(contentPI) .setContentIntent(contentPI)
.setDeleteIntent(seenPI) .setDeleteIntent(seenPI)
.setLights(Color.WHITE, 500, 2000) .setLights(Color.WHITE, 500, 2000)
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB