Fix blank activity after promoting overflow bubble

Select bubble after inflation.

Fixes: 150397228
Test: manual - promote bubble from overflow, activity shows
Change-Id: Icf7085a290e0c3163e9f65a639305a3eb64d1138
This commit is contained in:
Lyn Han
2020-03-11 18:04:35 -07:00
parent 28ab493385
commit 4438d9b57b

View File

@@ -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();
}