From 0577cda90b1f4b72e3d0deefd1c369607bc99fc3 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Tue, 12 May 2020 11:47:55 -0700 Subject: [PATCH] Auto-expand the bubble when created via bubble-button Fixes: 154225344 Test: manual - tap on bubble button from HUN -> bubble auto-expands - tap on bubble button from expanded notif in shade -> bubble auto-expands Change-Id: I058696d5cbc6bac12f047e85a795474b8bf62d1d --- .../src/com/android/systemui/bubbles/BubbleController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java index ca0cd77dfbb4b..18a03f28fda27 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java @@ -894,6 +894,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi // Update the state in NotificationManagerService try { int flags = Notification.BubbleMetadata.FLAG_SUPPRESS_NOTIFICATION; + flags |= Notification.BubbleMetadata.FLAG_AUTO_EXPAND_BUBBLE; mBarService.onNotificationBubbleChanged(entry.getKey(), shouldBubble, flags); } catch (RemoteException e) { }