From da9a6a2e930be4e860683621f147e54a8363c4cf Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Fri, 24 Apr 2020 13:21:43 -0700 Subject: [PATCH] Re-inflate overflow bubbles on theme change Fixes: 149146374 Test: manual - change theme shape, overflow bubbles change shape Change-Id: I6e4edf062c90244a53522bafb4fb62895566d922 --- .../src/com/android/systemui/bubbles/BubbleController.java | 5 ++++- 1 file changed, 4 insertions(+), 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 e488cf271fdfe..9f5d6bc5d7924 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java @@ -664,8 +664,11 @@ public class BubbleController implements ConfigurationController.ConfigurationLi mStackView.onThemeChanged(); } mBubbleIconFactory = new BubbleIconFactory(mContext); + // Reload each bubble for (Bubble b: mBubbleData.getBubbles()) { - // Reload each bubble + b.inflate(null /* callback */, mContext, mStackView, mBubbleIconFactory); + } + for (Bubble b: mBubbleData.getOverflowBubbles()) { b.inflate(null /* callback */, mContext, mStackView, mBubbleIconFactory); } }