Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleData.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -898,7 +898,10 @@ public class BubbleData { Bubble oldest = mOverflowBubbles.get(mOverflowBubbles.size() - 1); Bubble oldest = mOverflowBubbles.get(mOverflowBubbles.size() - 1); ProtoLog.d(WM_SHELL_BUBBLES, "overflow full, remove=%s", oldest.getKey()); ProtoLog.d(WM_SHELL_BUBBLES, "overflow full, remove=%s", oldest.getKey()); mStateChange.bubbleRemoved(oldest, Bubbles.DISMISS_OVERFLOW_MAX_REACHED); 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); mLogger.log(bubble, BubbleLogger.Event.BUBBLE_OVERFLOW_REMOVE_MAX_REACHED); } mOverflowBubbles.remove(oldest); mOverflowBubbles.remove(oldest); mStateChange.removedOverflowBubble = oldest; mStateChange.removedOverflowBubble = oldest; } } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleData.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -898,7 +898,10 @@ public class BubbleData { Bubble oldest = mOverflowBubbles.get(mOverflowBubbles.size() - 1); Bubble oldest = mOverflowBubbles.get(mOverflowBubbles.size() - 1); ProtoLog.d(WM_SHELL_BUBBLES, "overflow full, remove=%s", oldest.getKey()); ProtoLog.d(WM_SHELL_BUBBLES, "overflow full, remove=%s", oldest.getKey()); mStateChange.bubbleRemoved(oldest, Bubbles.DISMISS_OVERFLOW_MAX_REACHED); 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); mLogger.log(bubble, BubbleLogger.Event.BUBBLE_OVERFLOW_REMOVE_MAX_REACHED); } mOverflowBubbles.remove(oldest); mOverflowBubbles.remove(oldest); mStateChange.removedOverflowBubble = oldest; mStateChange.removedOverflowBubble = oldest; } } Loading