From 34e1af3090f240ce394d5f09f8cf0b2182cb3850 Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Thu, 11 Jun 2020 12:55:13 -0700 Subject: [PATCH] Mark accessed time to promote overflow bub to stack Fixes: 158773176 Test: manual 1) Have 5 bubbles in stack and some in overflow 2) Tap overflow bubble => See that it is now first (left) in stack => Oldest stack bubble gets overflowed Change-Id: I88f641aeeee307b952cc123619cc8507c27ada9a --- .../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 b4f8cb290fb13..a32712d640765 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java @@ -911,7 +911,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi mLogger.log(bubble, BubbleLogger.Event.BUBBLE_OVERFLOW_REMOVE_BACK_TO_STACK); bubble.setInflateSynchronously(mInflateSynchronously); bubble.setShouldAutoExpand(true); - bubble.markUpdatedAt(System.currentTimeMillis()); + bubble.markAsAccessedAt(System.currentTimeMillis()); setIsBubble(bubble, true /* isBubble */); }