summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alex Hills <ahills@google.com> 2016-10-10 15:27:37 +0000
committer android-build-merger <android-build-merger@google.com> 2016-10-10 15:27:37 +0000
commit30e45f5de498f36d6ac505f282e21280aaa1dfba (patch)
tree688b6fed50ef5e8b598d72f0d869f7653c436a63
parent5cb74bca88268a8b9025be2cce81e1b4f967d19d (diff)
parent21863add461405a96fbe3ff74a786aed49ff3458 (diff)
Updates documentation for MessagingStyle constructor am: fd590441c1 am: d86df31497
am: 21863add46 Change-Id: I1ab5b5f60df0c946040ed069a99e2b775bbee9a9
-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 680e5181c1c8..7be77c5548b7 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;
@@ -4683,12 +4684,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;
}