[SettingsLib] Update Utils.getColorAccent() and Utils.getColorError() to return ColorStateLists instead of colors.
Update Utils.getColorAccent() and Utils.getColorError() to return ColorStateLists instead of colors and change every callers entry. Bug: 78215054 Test: manually test for UI Change-Id: Ie201aee439bd9e8337eca989b4cdc836a6e8e917
This commit is contained in:
@@ -84,7 +84,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);
|
||||
@ColorInt final int color = Utils.getColorAccent(context);
|
||||
@ColorInt final int color = Utils.getColorAccentDefaultColor(context);
|
||||
final PendingIntent toggleAction = getBroadcastIntent(context);
|
||||
final PendingIntent primaryAction = getPrimaryAction(context);
|
||||
final SliceAction primarySliceAction = new SliceAction(primaryAction,
|
||||
|
||||
Reference in New Issue
Block a user