Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be341bfd authored by Mady Mellor's avatar Mady Mellor
Browse files

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
parent 3d593f7c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -736,6 +736,11 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
        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);
    }