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

Commit 38faea7f authored by Ats Jenk's avatar Ats Jenk
Browse files

Only log bubble overflow max reached when in stack view

We are not tracking max overflow bubbles reached event in bubble bar.

Bug: 375251811
Change-Id: I14537b4377808d90c4664032df2a46ec656c2405
Test: manual
Flag: com.android.wm.shell.enable_bubble_bar
parent 20b95349
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -898,7 +898,10 @@ public class BubbleData {
            Bubble oldest = mOverflowBubbles.get(mOverflowBubbles.size() - 1);
            ProtoLog.d(WM_SHELL_BUBBLES, "overflow full, remove=%s", oldest.getKey());
            mStateChange.bubbleRemoved(oldest, Bubbles.DISMISS_OVERFLOW_MAX_REACHED);
            if (!mPositioner.isShowingInBubbleBar()) {
                // Only logged for bubbles in stack view
                mLogger.log(bubble, BubbleLogger.Event.BUBBLE_OVERFLOW_REMOVE_MAX_REACHED);
            }
            mOverflowBubbles.remove(oldest);
            mStateChange.removedOverflowBubble = oldest;
        }