fix: double notification sounds on Samsung devices (issue #155) #156
+3
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Added
setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN)to three places inEventNotificationManager.kt:1. Group Summary Notification (
postGroupNotification) - line ~10142. Individual Event Notifications (
postNotification) - line ~11783. Partial Collapse Notifications (
postNumNotificationsCollapsed) - line ~1541What This Does
GROUP_ALERT_CHILDRENtells Android:This should fix the double notification sound issue on Samsung S22 (Android 16) where:
Add setGroupAlertBehavior(GROUP_ALERT_CHILDREN) to bundled notifications
to prevent group summaries from triggering additional alert sounds.
On Samsung S22 with Android 16, when multiple event notifications were
collapsed into a group, the group summary would trigger a second
notification sound. This fix explicitly tells Android that only child
notifications should alert, not the group summary.
Changes:
fixes #155
Note
Ensures grouped notifications only alert on child items, preventing duplicate sounds (e.g., on Samsung devices) when using bundled notifications.
setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN)to group summary inpostGroupNotificationuseBundledNotificationsinpostNotificationpostNumNotificationsCollapsedWritten by Cursor Bugbot for commit 38d1fd7. This will update automatically on new commits. Configure here.