forked from upstream-mirrors/quik
Merge pull request #647 from Inhishonor/notif-improvements
Improvements to the worker and message notifications
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user