Loading core/java/android/app/NotificationChannel.java +14 −9 Original line number Original line Diff line number Diff line Loading @@ -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)}. Loading @@ -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) { Loading @@ -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; Loading @@ -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; Loading @@ -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; Loading @@ -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; Loading @@ -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; Loading @@ -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. Loading packages/SystemUI/res/drawable/rounded_ripple.xml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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> Loading Loading
core/java/android/app/NotificationChannel.java +14 −9 Original line number Original line Diff line number Diff line Loading @@ -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)}. Loading @@ -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) { Loading @@ -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; Loading @@ -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; Loading @@ -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; Loading @@ -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; Loading @@ -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; Loading @@ -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. Loading
packages/SystemUI/res/drawable/rounded_ripple.xml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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> Loading