mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
allowing the first notification for each child of the group to vibrate/make a sound
- by having the group and child notifications alert once we can safetly always update the group and get consistent alertOnce behaviour
This commit is contained in:
parent
99de9d4a4f
commit
64c532e54b
1 changed files with 3 additions and 3 deletions
|
@ -561,7 +561,7 @@ class NotificationUtils @Inject constructor(private val context: Context,
|
|||
// TODO Group should be current user display name
|
||||
.setGroup(stringProvider.getString(R.string.app_name))
|
||||
// In order to avoid notification making sound twice (due to the summary notification)
|
||||
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY)
|
||||
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_ALL)
|
||||
.setSmallIcon(smallIcon)
|
||||
// Set primary color (important for Wear 2.0 Notifications).
|
||||
.setColor(accentColor)
|
||||
|
@ -644,7 +644,7 @@ class NotificationUtils @Inject constructor(private val context: Context,
|
|||
.setContentTitle(stringProvider.getString(R.string.app_name))
|
||||
.setContentText(inviteNotifiableEvent.description)
|
||||
.setGroup(stringProvider.getString(R.string.app_name))
|
||||
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY)
|
||||
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_ALL)
|
||||
.setSmallIcon(smallIcon)
|
||||
.setColor(accentColor)
|
||||
.apply {
|
||||
|
@ -708,7 +708,7 @@ class NotificationUtils @Inject constructor(private val context: Context,
|
|||
.setContentTitle(stringProvider.getString(R.string.app_name))
|
||||
.setContentText(simpleNotifiableEvent.description)
|
||||
.setGroup(stringProvider.getString(R.string.app_name))
|
||||
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY)
|
||||
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_ALL)
|
||||
.setSmallIcon(smallIcon)
|
||||
.setColor(accentColor)
|
||||
.setAutoCancel(true)
|
||||
|
|
Loading…
Add table
Reference in a new issue