Merge "Fix missing group alertOverride recalculation" into sc-v2-dev am: e7781424f5

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16664220

Change-Id: I4c49ed969fbb2f8ec6641414d157ac872af0c239
This commit is contained in:
Jeff DeCew
2022-01-27 20:59:29 +00:00
committed by Automerger Merge Worker

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);
}