[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:
@@ -452,8 +452,7 @@ public class RunningProcessesView extends FrameLayout
|
||||
final Context context = getContext();
|
||||
mColorBar.setProgressTintList(
|
||||
ColorStateList.valueOf(context.getColor(R.color.running_processes_system_ram)));
|
||||
mColorBar.setSecondaryProgressTintList(
|
||||
ColorStateList.valueOf(Utils.getColorAccent(context)));
|
||||
mColorBar.setSecondaryProgressTintList(Utils.getColorAccent(context));
|
||||
mColorBar.setSecondaryProgressTintMode(PorterDuff.Mode.SRC);
|
||||
mColorBar.setProgressBackgroundTintList(
|
||||
ColorStateList.valueOf(context.getColor(R.color.running_processes_free_ram)));
|
||||
|
Reference in New Issue
Block a user