Update javadoc for Notification#setOngoing

Bug: 273543426

Test: NotificationListenerVerifierActivity
Test: NotificationDismissVerifierActivity
Test: NotificationPrivacyVerifierActivity
Change-Id: Idb18fe3a7cdc5182fb0314c1e074f057d5ec1c6b
This commit is contained in:
András Kurucz
2023-03-15 18:02:05 +00:00
parent 9d68c78aaf
commit fffaf3cfb3

View File

@@ -4634,9 +4634,9 @@ public class Notification implements Parcelable
* Set whether this is an "ongoing" notification.
*
* Ongoing notifications cannot be dismissed by the user on locked devices, or by
* notification listeners, and some notifications (device management, media) cannot be
* dismissed on unlocked devices, so your application or service must take
* care of canceling them.
* notification listeners, and some notifications (call, device management, media) cannot
* be dismissed on unlocked devices, 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