From 4438d9b57bcd7d9af3b0275e3bf79be89d476fa4 Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Wed, 11 Mar 2020 18:04:35 -0700 Subject: [PATCH] Fix blank activity after promoting overflow bubble Select bubble after inflation. Fixes: 150397228 Test: manual - promote bubble from overflow, activity shows Change-Id: Icf7085a290e0c3163e9f65a639305a3eb64d1138 --- .../src/com/android/systemui/bubbles/BubbleData.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleData.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleData.java index cf5a4d3840cca..4876c572eb0b4 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleData.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleData.java @@ -207,12 +207,13 @@ public class BubbleData { // Preserve new order for next repack, which sorts by last updated time. bubble.markUpdatedAt(mTimeSource.currentTimeMillis()); - setSelectedBubbleInternal(bubble); mOverflowBubbles.remove(bubble); - bubble.inflate( - b -> notificationEntryUpdated(bubble, /* suppressFlyout */ - false, /* showInShade */ true), + b -> { + notificationEntryUpdated(bubble, /* suppressFlyout */ + false, /* showInShade */ true); + setSelectedBubbleInternal(bubble); + }, mContext, stack, factory); dispatchPendingChanges(); }