Merge "Fix bubbles behavior in bedtime mode" into sc-v2-dev am: b13cde5c9c am: 2e0c8c8b14

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

Change-Id: Id424fe5191c9379949e90796f2bd69f9050ed50c
This commit is contained in:
Sergey Serokurov
2021-11-10 19:29:28 +00:00
committed by Automerger Merge Worker

View File

@@ -1036,10 +1036,9 @@ public class BubbleController {
// notification, so that the bubble will be re-created if shouldBubbleUp returns
// true.
mBubbleData.dismissBubbleWithKey(key, DISMISS_NO_BUBBLE_UP);
} else if (entry != null && mTmpRanking.isBubble() && !isActiveBubble
&& !entry.getRanking().isSuspended()) {
} else if (entry != null && mTmpRanking.isBubble() && !isActiveBubble) {
entry.setFlagBubble(true);
onEntryUpdated(entry, true /* shouldBubbleUp */);
onEntryUpdated(entry, shouldBubbleUp && !entry.getRanking().isSuspended());
}
}
}