From b9e997621ef05f1f6582faa944eda1b6a6009df9 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Wed, 10 Jun 2020 12:46:39 -0700 Subject: [PATCH] Only inflate & add if it's a bubble A mistake from ag/11797627 Bug: 158480978 Test: manual Change-Id: I4b43ec1f1cc32b33eec63b2504aed774d71342e3 --- .../src/com/android/systemui/bubbles/BubbleController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java index 35cac4d9d63d5..fa91b6eba5f8c 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java @@ -1156,7 +1156,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 */);