diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2017-07-21 14:02:59 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-07-21 14:02:59 +0000 |
| commit | 2d3356375a712878c6645ca9eb8b796080ca178b (patch) | |
| tree | 9cadbca791d7684c806563c7a2088075002b2a61 /core/java | |
| parent | e7e68b8991071d2bfb930b82b15f087cebff2fcf (diff) | |
| parent | 07532c3f79334390fd5d9b5a0a183a25e6ac08bd (diff) | |
Merge "Allow apps to downgrade importance in createNotificationChannel" into oc-mr1-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/NotificationManager.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/app/NotificationManager.java b/core/java/android/app/NotificationManager.java index 0f0c4bac5f9f..885817231175 100644 --- a/core/java/android/app/NotificationManager.java +++ b/core/java/android/app/NotificationManager.java @@ -416,12 +416,16 @@ public class NotificationManager { * Creates a notification channel that notifications can be posted to. * * This can also be used to restore a deleted channel and to update an existing channel's - * name and description. + * name, description, and/or importance. * * <p>The name and description should only be changed if the locale changes * or in response to the user renaming this channel. For example, if a user has a channel * named 'John Doe' that represents messages from a 'John Doe', and 'John Doe' changes his name * to 'John Smith,' the channel can be renamed to match. + * + * <p>The importance of an existing channel will only be changed if the new importance is lower + * than the current value and the user has not altered any settings on this channel. + * * All other fields are ignored for channels that already exist. * * @param channel the channel to create. Note that the created channel may differ from this |
