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))
.setShowWhen(false)
.setWhen(System.currentTimeMillis())
.setSmallIcon(R.drawable.ic_notification)
.setSmallIcon(R.drawable.ic_notification_worker)
.setColor(colors.theme().theme)
.setCategory(NotificationCompat.CATEGORY_MESSAGE)
.setPriority(NotificationCompat.PRIORITY_MIN)
.setOngoing(true)
.setSilent(true)
.build()
/**
@@ -163,6 +164,7 @@ class NotificationManagerImpl @Inject constructor(
.setSmallIcon(R.drawable.ic_notification)
.setNumber(messages.size)
.setAutoCancel(true)
.setOnlyAlertOnce(true)
.setContentIntent(contentPI)
.setDeleteIntent(seenPI)
.setLights(Color.WHITE, 500, 2000)
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB