summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2011-02-07 16:47:07 -0500
committerDaniel Sandler <dsandler@google.com>2011-02-07 16:47:07 -0500
commite97a3bce3c91d76b623f57d309f7bf74947494da (patch)
tree0b712eae10da8764a186f61e5179b19986940508 /core/java/android
parentd952daec06018fe7064b8cafd31dfc71f9eee383 (diff)
Minor cleanups to Notification docs.
Bug: 3240190 Change-Id: I25f954bf8346a0da281fa47c7e91abaff4eb4259
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/NotificationManager.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/core/java/android/app/NotificationManager.java b/core/java/android/app/NotificationManager.java
index e3242c102379..6541c54edb5f 100644
--- a/core/java/android/app/NotificationManager.java
+++ b/core/java/android/app/NotificationManager.java
@@ -83,12 +83,14 @@ public class NotificationManager
}
/**
- * Persistent notification on the status bar,
+ * Post a notification to be shown in the status bar. If a notification with
+ * the same id has already been posted by your application and has not yet been canceled, it
+ * will be replaced by the updated information.
*
* @param id An identifier for this notification unique within your
* application.
- * @param notification A {@link Notification} object describing how to
- * notify the user, other than the view you're providing. Must not be null.
+ * @param notification A {@link Notification} object describing what to show the user. Must not
+ * be null.
*/
public void notify(int id, Notification notification)
{
@@ -96,13 +98,15 @@ public class NotificationManager
}
/**
- * Persistent notification on the status bar,
+ * Post a notification to be shown in the status bar. If a notification with
+ * the same tag and id has already been posted by your application and has not yet been
+ * canceled, it will be replaced by the updated information.
*
* @param tag A string identifier for this notification. May be {@code null}.
* @param id An identifier for this notification. The pair (tag, id) must be unique
* within your application.
- * @param notification A {@link Notification} object describing how to
- * notify the user, other than the view you're providing. Must not be null.
+ * @param notification A {@link Notification} object describing what to
+ * show the user. Must not be null.
*/
public void notify(String tag, int id, Notification notification)
{