summaryrefslogtreecommitdiff
path: root/core/java/android/app/NotificationChannel.java
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2017-04-25 13:52:49 -0400
committerJulia Reynolds <juliacr@google.com>2017-04-25 17:00:05 -0400
commitbad42976009ffb61010136ed8055f9e0f6d2e416 (patch)
tree41c3243187a4e74ddcac2278248fe601c5d2dcb5 /core/java/android/app/NotificationChannel.java
parentcd68c334bad676e4b29db77c78f61eb48fd75df1 (diff)
Api updates
- Better documentation on DEFAULT_CHANNEL_ID - Renaming getChannel/setChannel/getTimeout/setTimeout - Add documentation to getShortcutId - @hide parcel constructors Test: make, make cts Bug: 37672218 Change-Id: I695b2620c51638a84930e9d1c5fbfd6d85699b55
Diffstat (limited to 'core/java/android/app/NotificationChannel.java')
-rw-r--r--core/java/android/app/NotificationChannel.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/app/NotificationChannel.java b/core/java/android/app/NotificationChannel.java
index 2dd33013ab8e..704e912c3749 100644
--- a/core/java/android/app/NotificationChannel.java
+++ b/core/java/android/app/NotificationChannel.java
@@ -40,8 +40,9 @@ import java.util.Arrays;
public final class NotificationChannel implements Parcelable {
/**
- * The id of the default channel for an app. All notifications posted without a notification
- * channel specified are posted to this channel.
+ * The id of the default channel for an app. This id is reserved by the system. All
+ * notifications posted from apps targeting {@link android.os.Build.VERSION_CODES#N_MR1} or
+ * earlier without a notification channel specified are posted to this channel.
*/
public static final String DEFAULT_CHANNEL_ID = "miscellaneous";
@@ -170,6 +171,9 @@ public final class NotificationChannel implements Parcelable {
this.mImportance = importance;
}
+ /**
+ * @hide
+ */
protected NotificationChannel(Parcel in) {
if (in.readByte() != 0) {
mId = in.readString();