Merge "Only inflate & add if it's a bubble" into rvc-dev am: 3ef506d546

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

Change-Id: I0b2d219c29e8749a6499ce4e38044862f46fb948
This commit is contained in:
TreeHugger Robot
2020-06-10 21:59:15 +00:00
committed by Automerger Merge Worker

View File

@@ -1166,7 +1166,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
if (b.getEntry() != null) {
// Updating the entry to be a bubble will trigger our normal update flow
setIsBubble(b.getEntry(), isBubble, b.shouldAutoExpand());
} else {
} else if (isBubble) {
// If we have no entry to update, it's a persisted bubble so
// we need to add it to the stack ourselves
Bubble bubble = mBubbleData.getOrCreateBubble(null, b /* persistedBubble */);