Merge "Update FLAG_ONLY_ALERT_ONCE docs" am: e3a1682e0b

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2062847

Change-Id: I46beb5247898976a891faccd62f2464efb7c5b58
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Julia Reynolds
2022-04-13 19:34:08 +00:00
committed by Automerger Merge Worker

View File

@@ -622,6 +622,9 @@ public class Notification implements Parcelable
* Bit to be bitwise-ored into the {@link #flags} field that should be * 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 * set if you would only like the sound, vibrate and ticker to be played
* if the notification was not already showing. * 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; 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 * Set this flag if you would only like the sound, vibrate
* and ticker to be played if the notification is not already showing. * 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 * @see Notification#FLAG_ONLY_ALERT_ONCE
*/ */
@NonNull @NonNull