summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2016-10-07 20:34:48 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-10-07 20:34:50 +0000
commit67c70a263c4654e00fd2f045ca32a53630cc10d0 (patch)
treee5e8e9b5bc99400e1860730c0faf517239b40067
parent0f6cec369ff456b203c70f3a56662d2b8fa7aa98 (diff)
parentfd590441c181fccbfeca200161fc7cee03846c8f (diff)
Merge "Updates documentation for MessagingStyle constructor" into nyc-mr1-dev
-rw-r--r--core/java/android/app/Notification.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 981a0551fc7e..1103d9e900c1 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -19,6 +19,7 @@ package android.app;
import android.annotation.ColorInt;
import android.annotation.DrawableRes;
import android.annotation.IntDef;
+import android.annotation.NonNull;
import android.annotation.SdkConstant;
import android.annotation.SdkConstant.SdkConstantType;
import android.annotation.SystemApi;
@@ -4649,12 +4650,12 @@ public class Notification implements Parcelable
}
/**
- * @param userDisplayName the name to be displayed for any replies sent by the user before the
- * posting app reposts the notification with those messages after they've been actually
- * sent and in previous messages sent by the user added in
+ * @param userDisplayName Required - the name to be displayed for any replies sent by the
+ * user before the posting app reposts the notification with those messages after they've
+ * been actually sent and in previous messages sent by the user added in
* {@link #addMessage(Notification.MessagingStyle.Message)}
*/
- public MessagingStyle(CharSequence userDisplayName) {
+ public MessagingStyle(@NonNull CharSequence userDisplayName) {
mUserDisplayName = userDisplayName;
}