Add subtitle for Do not disturb
Bug: 130364160 Test: visual Change-Id: I85507b6b269d427501f144f56ca7dc871269e6d4
This commit is contained in:
@@ -73,6 +73,7 @@ public class ZenModeSliceBuilder {
|
||||
public static Slice getSlice(Context context) {
|
||||
final boolean isZenModeEnabled = isZenModeEnabled(context);
|
||||
final CharSequence title = context.getText(R.string.zen_mode_settings_title);
|
||||
final CharSequence subtitle = context.getText(R.string.zen_mode_slice_subtitle);
|
||||
@ColorInt final int color = Utils.getColorAccentDefaultColor(context);
|
||||
final PendingIntent toggleAction = getBroadcastIntent(context);
|
||||
final PendingIntent primaryAction = getPrimaryAction(context);
|
||||
@@ -86,6 +87,7 @@ public class ZenModeSliceBuilder {
|
||||
.setAccentColor(color)
|
||||
.addRow(new RowBuilder()
|
||||
.setTitle(title)
|
||||
.setSubtitle(subtitle)
|
||||
.addEndItem(toggleSliceAction)
|
||||
.setPrimaryAction(primarySliceAction))
|
||||
.build();
|
||||
|
Reference in New Issue
Block a user