summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff DeCew <jeffdq@google.com> 2022-01-27 20:59:29 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-01-27 20:59:29 +0000
commit2a6f5aa7ff89328e140e60f412469314cca4b713 (patch)
treee8828195caeb1808528c5450419df26018b64992
parent72ace1990ca7463c1fc10c7922a1759b43dbdd05 (diff)
parente7781424f5a022b08489db08155ae223b15875a5 (diff)
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
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/legacy/NotificationGroupManagerLegacy.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/legacy/NotificationGroupManagerLegacy.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/legacy/NotificationGroupManagerLegacy.java
index 14b9795fe67f..c29905bc7008 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/legacy/NotificationGroupManagerLegacy.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/legacy/NotificationGroupManagerLegacy.java
@@ -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);
}