Don't show dot when bubble is expanded & gets update

When show in shade is updated we need to factor in whether the bubble
is expanded or not.

Test: manual - get a bubble, expand it, and change the height using the
               slider (this causes an update), note that the height changes
               but a new notificaiton doesn't appear
Fixes: 134423445
Change-Id: I1427e80bc044472ea40dfc2670000b90b86f0fa5
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java
index a23c99e..727d6b6 100644
--- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java
+++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java
@@ -736,6 +736,11 @@
         boolean suppressNotification = entry.getBubbleMetadata() != null
                 && entry.getBubbleMetadata().isNotificationSuppressed()
                 && isForegroundApp(mContext, entry.notification.getPackageName());
+        Bubble b = mBubbleData.getBubbleWithKey(entry.key);
+        if (b != null && mBubbleData.getSelectedBubble() == b && mBubbleData.isExpanded()) {
+            // If we're expanded & selected don't show in shade
+            suppressNotification = true;
+        }
         entry.setShowInShadeWhenBubble(!suppressNotification);
     }