From 76bc1ab8e10c9e4579ea6614d2352eea85e52980 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Mon, 13 Feb 2023 09:01:15 -0500 Subject: [PATCH] Update javadoc for setOngoing Test: NotificationListenerVerifierActivity Test: NotificationDismissVerifierActivity Test: NotificationPrivacyVerifierActivity Fixes: 240553971 Change-Id: I246459e4f80bfd4ebdd3afabf1e9d800a971e7c4 --- core/java/android/app/Notification.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index b86b09d9bf26d..1e1db58a96dc5 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -4624,16 +4624,15 @@ public class Notification implements Parcelable /** * Set whether this is an "ongoing" notification. * - - * Ongoing notifications cannot be dismissed by the user, so your application or service - * must take care of canceling them. + * Ongoing notifications cannot be dismissed by the user on locked devices, or by + * notification listeners, and some notifications cannnot be dismissed on unlocked + * devices (system, device management, media), so your application or service must take + * care of canceling them. * - * They are typically used to indicate a background task that the user is actively engaged * with (e.g., playing music) or is pending in some way and therefore occupying the device * (e.g., a file download, sync operation, active network connection). * - * @see Notification#FLAG_ONGOING_EVENT */ @NonNull