summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Julia Tuttle <juliatuttle@google.com> 2023-08-16 20:06:51 -0400
committer Julia Tuttle <juliatuttle@google.com> 2023-08-23 17:12:49 -0400
commit7593da440b212796f861ce1c8e1c7856f6cf9647 (patch)
tree1265c392a0478ccfce657a4e00ac45cf1ceadb4f /libs/androidfw/FileStream.cpp
parent83cfc036537df7cab962fb04b8a76c30ab655949 (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