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))
|
.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 |
Reference in New Issue
Block a user