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

Commit d7d346a3 authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

Merge changes I3a35ed86,I74a9c767 into pi-dev am: 02db955e

am: 9aa4b2b3

Change-Id: I0e26596917735be3e93d77e23f008cfa3c387390
parents 040bf344 9aa4b2b3
Loading
Loading
Loading
Loading
+14 −9
Original line number Original line Diff line number Diff line
@@ -328,7 +328,8 @@ public final class NotificationChannel implements Parcelable {
     * Group information is only used for presentation, not for behavior.
     * Group information is only used for presentation, not for behavior.
     *
     *
     * Only modifiable before the channel is submitted to
     * Only modifiable before the channel is submitted to
     * {@link NotificationManager#notify(String, int, Notification)}.
     * {@link NotificationManager#createNotificationChannel(NotificationChannel)}, unless the
     * channel is not currently part of a group.
     *
     *
     * @param groupId the id of a group created by
     * @param groupId the id of a group created by
     * {@link NotificationManager#createNotificationChannelGroup(NotificationChannelGroup)}.
     * {@link NotificationManager#createNotificationChannelGroup(NotificationChannelGroup)}.
@@ -341,6 +342,9 @@ public final class NotificationChannel implements Parcelable {
     * Sets whether notifications posted to this channel can appear as application icon badges
     * Sets whether notifications posted to this channel can appear as application icon badges
     * in a Launcher.
     * in a Launcher.
     *
     *
     * Only modifiable before the channel is submitted to
     * {@link NotificationManager#createNotificationChannel(NotificationChannel)}.
     *
     * @param showBadge true if badges should be allowed to be shown.
     * @param showBadge true if badges should be allowed to be shown.
     */
     */
    public void setShowBadge(boolean showBadge) {
    public void setShowBadge(boolean showBadge) {
@@ -353,7 +357,7 @@ public final class NotificationChannel implements Parcelable {
     * least {@link NotificationManager#IMPORTANCE_DEFAULT} should have a sound.
     * least {@link NotificationManager#IMPORTANCE_DEFAULT} should have a sound.
     *
     *
     * Only modifiable before the channel is submitted to
     * Only modifiable before the channel is submitted to
     * {@link NotificationManager#notify(String, int, Notification)}.
     * {@link NotificationManager#createNotificationChannel(NotificationChannel)}.
     */
     */
    public void setSound(Uri sound, AudioAttributes audioAttributes) {
    public void setSound(Uri sound, AudioAttributes audioAttributes) {
        this.mSound = sound;
        this.mSound = sound;
@@ -365,7 +369,7 @@ public final class NotificationChannel implements Parcelable {
     * on devices that support that feature.
     * on devices that support that feature.
     *
     *
     * Only modifiable before the channel is submitted to
     * Only modifiable before the channel is submitted to
     * {@link NotificationManager#notify(String, int, Notification)}.
     * {@link NotificationManager#createNotificationChannel(NotificationChannel)}.
     */
     */
    public void enableLights(boolean lights) {
    public void enableLights(boolean lights) {
        this.mLights = lights;
        this.mLights = lights;
@@ -376,7 +380,7 @@ public final class NotificationChannel implements Parcelable {
     * {@link #enableLights(boolean) enabled} on this channel and the device supports that feature.
     * {@link #enableLights(boolean) enabled} on this channel and the device supports that feature.
     *
     *
     * Only modifiable before the channel is submitted to
     * Only modifiable before the channel is submitted to
     * {@link NotificationManager#notify(String, int, Notification)}.
     * {@link NotificationManager#createNotificationChannel(NotificationChannel)}.
     */
     */
    public void setLightColor(int argb) {
    public void setLightColor(int argb) {
        this.mLightColor = argb;
        this.mLightColor = argb;
@@ -387,7 +391,7 @@ public final class NotificationChannel implements Parcelable {
     * be set with {@link #setVibrationPattern(long[])}.
     * be set with {@link #setVibrationPattern(long[])}.
     *
     *
     * Only modifiable before the channel is submitted to
     * Only modifiable before the channel is submitted to
     * {@link NotificationManager#notify(String, int, Notification)}.
     * {@link NotificationManager#createNotificationChannel(NotificationChannel)}.
     */
     */
    public void enableVibration(boolean vibration) {
    public void enableVibration(boolean vibration) {
        this.mVibrationEnabled = vibration;
        this.mVibrationEnabled = vibration;
@@ -399,7 +403,7 @@ public final class NotificationChannel implements Parcelable {
     * vibration} as well. Otherwise, vibration will be disabled.
     * vibration} as well. Otherwise, vibration will be disabled.
     *
     *
     * Only modifiable before the channel is submitted to
     * Only modifiable before the channel is submitted to
     * {@link NotificationManager#notify(String, int, Notification)}.
     * {@link NotificationManager#createNotificationChannel(NotificationChannel)}.
     */
     */
    public void setVibrationPattern(long[] vibrationPattern) {
    public void setVibrationPattern(long[] vibrationPattern) {
        this.mVibrationEnabled = vibrationPattern != null && vibrationPattern.length > 0;
        this.mVibrationEnabled = vibrationPattern != null && vibrationPattern.length > 0;
@@ -407,9 +411,10 @@ public final class NotificationChannel implements Parcelable {
    }
    }


    /**
    /**
     * Sets the level of interruption of this notification channel. Only
     * Sets the level of interruption of this notification channel.
     * modifiable before the channel is submitted to
     *
     * {@link NotificationManager#notify(String, int, Notification)}.
     * Only modifiable before the channel is submitted to
     * {@link NotificationManager#createNotificationChannel(NotificationChannel)}.
     *
     *
     * @param importance the amount the user should be interrupted by
     * @param importance the amount the user should be interrupted by
     *            notifications from this channel.
     *            notifications from this channel.
+1 −1
Original line number Original line Diff line number Diff line
@@ -23,7 +23,7 @@
    </item>
    </item>
    <item android:id="@android:id/background">
    <item android:id="@android:id/background">
        <shape android:shape="rectangle">
        <shape android:shape="rectangle">
            <solid android:color="#FFFFFFFF"/>
            <solid android:color="?android:attr/colorBackgroundFloating"/>
            <corners android:radius="8dp"/>
            <corners android:radius="8dp"/>
        </shape>
        </shape>
    </item>
    </item>