diff options
| author | 2023-08-16 20:06:51 -0400 | |
|---|---|---|
| committer | 2023-08-23 17:12:49 -0400 | |
| commit | 7593da440b212796f861ce1c8e1c7856f6cf9647 (patch) | |
| tree | 1265c392a0478ccfce657a4e00ac45cf1ceadb4f /libs/androidfw/FileStream.cpp | |
| parent | 83cfc036537df7cab962fb04b8a76c30ab655949 (diff) | |
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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions