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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user