[SettingsLib] Update Utils APIs usage
Update Utils.getColorAttr and similar methods in Utils to return a ColorStateList instead of a color Bug: 74872054 Test: Force to display different color items then manually test Change-Id: If002f9a578558e6254220c36ef556e8378d4522a
This commit is contained in:
@@ -37,7 +37,7 @@ public class BatterySaverDrawable extends BatteryMeterDrawableBase {
|
||||
setPowerSave(true);
|
||||
setCharging(false);
|
||||
setPowerSaveAsColorError(false);
|
||||
final int tintColor = Utils.getColorAttr(context, android.R.attr.colorAccent);
|
||||
final int tintColor = Utils.getColorAttrDefaultColor(context, android.R.attr.colorAccent);
|
||||
setColorFilter(new PorterDuffColorFilter(tintColor, PorterDuff.Mode.SRC_IN));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user