mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
Set the message count for the notification badge
This commit is contained in:
parent
e1274ac4c2
commit
b43a2e7ac0
1 changed files with 3 additions and 0 deletions
|
@ -533,6 +533,9 @@ class NotificationUtils @Inject constructor(private val context: Context,
|
|||
// Number of new notifications for API <24 (M and below) devices.
|
||||
.setSubText(stringProvider.getQuantityString(R.plurals.room_new_messages_notification, messageStyle.messages.size, messageStyle.messages.size))
|
||||
|
||||
// Number of new notifications for notification badge
|
||||
.setNumber(messageStyle.messages.size)
|
||||
|
||||
// Auto-bundling is enabled for 4 or more notifications on API 24+ (N+)
|
||||
// devices and all Wear devices. But we want a custom grouping, so we specify the groupID
|
||||
// TODO Group should be current user display name
|
||||
|
|
Loading…
Reference in a new issue