Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21863add authored by Alex Hills's avatar Alex Hills Committed by android-build-merger
Browse files

Updates documentation for MessagingStyle constructor am: fd590441

am: d86df314

Change-Id: I6bdc90b7fde47569823b49c556f3bca9b50b0e48
parents 64a9f0ef d86df314
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -19,6 +19,7 @@ package android.app;
import android.annotation.ColorInt;
import android.annotation.ColorInt;
import android.annotation.DrawableRes;
import android.annotation.DrawableRes;
import android.annotation.IntDef;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.SdkConstant;
import android.annotation.SdkConstant;
import android.annotation.SdkConstant.SdkConstantType;
import android.annotation.SdkConstant.SdkConstantType;
import android.annotation.SystemApi;
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
         * @param userDisplayName Required - the name to be displayed for any replies sent by the
         * posting app reposts the notification with those messages after they've been actually
         * user before the posting app reposts the notification with those messages after they've
         * sent and in previous messages sent by the user added in
         * been actually sent and in previous messages sent by the user added in
         * {@link #addMessage(Notification.MessagingStyle.Message)}
         * {@link #addMessage(Notification.MessagingStyle.Message)}
         */
         */
        public MessagingStyle(CharSequence userDisplayName) {
        public MessagingStyle(@NonNull CharSequence userDisplayName) {
            mUserDisplayName = userDisplayName;
            mUserDisplayName = userDisplayName;
        }
        }