summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Edward Savage-Jones <edward.savage-jones@sony.com> 2022-04-13 00:28:16 +0200
committer Ed Savage-Jones <edward.savage-jones@sony.com> 2022-04-13 08:35:38 +0000
commit1a90fd5998e6ac6c410f91cfbc5e93bacceb8435 (patch)
tree8b4df26e9a2b252ce0afcc5ef3fbd578e2c0274a
parent49c0c87c798d95a32ff7c4ccd8a44cccfd46ea3b (diff)
Update FLAG_ONLY_ALERT_ONCE docs
Update FLAG_ONLY_ALERT_ONCE docs to match implementation from Android P and onwards. Bug: 222328375 Test: atest BuzzBeepBlinkTest Change-Id: Ic058b8265551362b04b9cd0363e43a4c08ecd736
-rw-r--r--core/java/android/app/Notification.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 2c02be7dc6b9..c3be18e2b160 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -622,6 +622,9 @@ public class Notification implements Parcelable
* Bit to be bitwise-ored into the {@link #flags} field that should be
* set if you would only like the sound, vibrate and ticker to be played
* if the notification was not already showing.
+ *
+ * Note that using this flag will stop any ongoing alerting behaviour such
+ * as sound, vibration or blinking notification LED.
*/
public static final int FLAG_ONLY_ALERT_ONCE = 0x00000008;
@@ -4601,6 +4604,9 @@ public class Notification implements Parcelable
* Set this flag if you would only like the sound, vibrate
* and ticker to be played if the notification is not already showing.
*
+ * Note that using this flag will stop any ongoing alerting behaviour such
+ * as sound, vibration or blinking notification LED.
+ *
* @see Notification#FLAG_ONLY_ALERT_ONCE
*/
@NonNull