Fix missing group alertOverride recalculation

Bug: 185680162
Test: manual testing w/ telegram and whatsapp
Test: atest NotificationGroupAlertTransferHelperTest
Test: atest NotificationGroupManagerLegacyTest
Change-Id: I4447810af5e2a17c3b6841dfa5cd31703e5f334d
This commit is contained in:
Jeff DeCew
2022-01-14 15:08:22 +00:00
parent 6ee64f6f26
commit 457bab6392

View File

@@ -529,8 +529,10 @@ public class NotificationGroupManagerLegacy implements
mIsolatedEntries.put(entry.getKey(), entry.getSbn()); mIsolatedEntries.put(entry.getKey(), entry.getSbn());
if (groupKeysChanged) { if (groupKeysChanged) {
updateSuppression(mGroupMap.get(oldGroupKey)); updateSuppression(mGroupMap.get(oldGroupKey));
updateSuppression(mGroupMap.get(newGroupKey));
} }
// Always update the suppression of the group from which you're isolated, in case
// this entry was or now is the alertOverride for that group.
updateSuppression(mGroupMap.get(newGroupKey));
} else if (!wasGroupChild && isGroupChild) { } else if (!wasGroupChild && isGroupChild) {
onEntryBecomingChild(entry); onEntryBecomingChild(entry);
} }