Fix missing group alertOverride recalculation

Bug: 185680162
Test: manual testing w/ telegram and whatsapp
Test: atest NotificationGroupAlertTransferHelperTest
Test: atest NotificationGroupManagerLegacyTest
(cherry picked from commit 457bab6392)
(cherry picked from commit aa6a7754ea)
(cherry picked from commit 38d57ffe4a)
Merged-In: I4447810af5e2a17c3b6841dfa5cd31703e5f334d
Change-Id: I4447810af5e2a17c3b6841dfa5cd31703e5f334d
This commit is contained in:
Jeff DeCew
2022-01-14 15:08:22 +00:00
committed by Xin Li
parent bdd4019a16
commit 2592ea1fc8

View File

@@ -529,8 +529,10 @@ public class NotificationGroupManagerLegacy implements
mIsolatedEntries.put(entry.getKey(), entry.getSbn());
if (groupKeysChanged) {
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) {
onEntryBecomingChild(entry);
}