From 16bc4e37395d5246096e5f022625226ce994d56d Mon Sep 17 00:00:00 2001 From: Yuri Lin Date: Wed, 13 Mar 2024 17:11:53 -0400 Subject: Update documentation for canBypassDnd. This reflects the addition of the "allow priority channels" setting in the policy that controls whether priority channels are permitted to break through. Bug: 309846568 Test: N/A, documentation only Change-Id: I274abbc320d8712e654a7ae7bba063357ae4be9f --- core/java/android/app/NotificationChannel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/app/NotificationChannel.java b/core/java/android/app/NotificationChannel.java index 9f2e4739e8e6..7c803ebde384 100644 --- a/core/java/android/app/NotificationChannel.java +++ b/core/java/android/app/NotificationChannel.java @@ -776,7 +776,8 @@ public final class NotificationChannel implements Parcelable { /** * Whether or not notifications posted to this channel can bypass the Do Not Disturb - * {@link NotificationManager#INTERRUPTION_FILTER_PRIORITY} mode. + * {@link NotificationManager#INTERRUPTION_FILTER_PRIORITY} mode when the active policy allows + * priority channels to bypass notification filtering. */ public boolean canBypassDnd() { return mBypassDnd; -- cgit v1.2.3-59-g8ed1b