summaryrefslogtreecommitdiff
path: root/core/java/android/app/Notification.java
diff options
context:
space:
mode:
authorMady Mellor <madym@google.com>2021-06-01 14:16:04 -0700
committerMady Mellor <madym@google.com>2021-06-01 14:16:22 -0700
commit72c320aefc6c19685c735bf55449dfa164d01f40 (patch)
tree32d588e65a3134cded3cc294ab6afcee4b6203fd /core/java/android/app/Notification.java
parentdf773665d02ab79a38908e180f436127f8085f98 (diff)
Remove doc saying setSuppressNotification requires being in foreground
ag/13330774 removed the requirement & added tests; this updates the javadoc around it. Bug: 189175840 Test: treehugger Change-Id: I5c8fc35607c79a6e70e8245d8662d66d5e884fa1
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r--core/java/android/app/Notification.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 432d99d80b89..da02e26514af 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -9782,10 +9782,6 @@ public class Notification implements Parcelable
* <p>Apps sending bubbles may set this flag so that the bubble is posted <b>without</b>
* the associated notification in the notification shade.</p>
*
- * <p>Apps sending bubbles can only apply this flag when the app is in the foreground,
- * otherwise the flag is not respected. The app is considered foreground if it is visible
- * and on the screen, note that a foreground service does not qualify.</p>
- *
* <p>Generally this flag should only be set by the app if the user has performed an
* action to request or create a bubble, or if the user has seen the content in the
* notification and the notification is no longer relevant. </p>
@@ -9936,10 +9932,6 @@ public class Notification implements Parcelable
* <p>Apps sending bubbles may set this flag so that the bubble is posted <b>without</b>
* the associated notification in the notification shade.</p>
*
- * <p>Apps sending bubbles can only apply this flag when the app is in the foreground,
- * otherwise the flag is not respected. The app is considered foreground if it is visible
- * and on the screen, note that a foreground service does not qualify.</p>
- *
* <p>Generally the app should only set this flag if the user has performed an
* action to request or create a bubble, or if the user has seen the content in the
* notification and the notification is no longer relevant. </p>
@@ -10325,11 +10317,6 @@ public class Notification implements Parcelable
* Sets whether the bubble will be posted <b>without</b> the associated notification in
* the notification shade.
*
- * <p>This flag has no effect if the app posting the bubble is not in the foreground.
- * The app is considered foreground if it is visible and on the screen, note that
- * a foreground service does not qualify.
- * </p>
- *
* <p>Generally, this flag should only be set if the user has performed an action to
* request or create a bubble, or if the user has seen the content in the notification
* and the notification is no longer relevant.</p>