Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7593da44 authored by Julia Tuttle's avatar Julia Tuttle
Browse files

Dismiss HUN group summary if user taps HUN group child

If an app posts a group with a summary and 2+ children and sets
GROUP_ALERT_SUMMARY, System UI will present the summary with the
collapsed children as a single HUN.

If the user expands one of the children and taps it, the animation code
will try to remove the HUN for the child the user tapped. Unfortunately,
since the *summary* was the alerting notification, the entire group HUN
will remain visible.

This can also happen if an app posts a group with a high-priority
summary but default (or lower) priority children.

This change augments the logic in removeHun so that if the notification
itself isn't alerting, but it has a parent that *is* alerting, the
*parent's* HUN will be removed instead.

Bug: 249840069
Test: manual, using Notify.apk
Test: atest 'NotificationLaunchAnimatorControllerTest#testHunIsRemovedAndCallbackIsInvokedOnAlertingParent'
Test: atest TapChildOfHeadsUpSummary
Change-Id: Ia5b8537747def402df518d33f14ed7c8e2198585
parent 83cfc036
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment