From 5a61a8f927fcb839a9c813e4125ddeed8fe2c304 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Mon, 10 Jul 2023 14:27:28 -0700 Subject: [PATCH] Allow flags to be set on BubbleInfo Test: manual Bug: 269670235 Change-Id: I2c1b564de94ad0a641c8c9fe55159eaaad8bf391 --- .../src/com/android/wm/shell/common/bubbles/BubbleInfo.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleInfo.java b/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleInfo.java index 21355a3efa2e3..24608d651d06c 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleInfo.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleInfo.java @@ -129,6 +129,11 @@ public class BubbleInfo implements Parcelable { return (mFlags & Notification.BubbleMetadata.FLAG_SUPPRESS_NOTIFICATION) != 0; } + /** Sets the flags for this bubble. */ + public void setFlags(int flags) { + mFlags = flags; + } + @Override public boolean equals(Object o) { if (this == o) return true;