Fix battery warning color lookup
Test: visual Change-Id: Ia3db18f27d83c079b19fc555387e1f7be8963298 Fixes: 36552063
This commit is contained in:
@@ -101,7 +101,7 @@ public class BatteryMeterDrawableBase extends Drawable {
|
||||
for (int i=0; i < N; i++) {
|
||||
mColors[2 * i] = levels.getInt(i, 0);
|
||||
if (colors.getType(i) == TypedValue.TYPE_ATTRIBUTE) {
|
||||
mColors[2 * i + 1] = Utils.getColorAttr(context, colors.getResourceId(i, 0));
|
||||
mColors[2 * i + 1] = Utils.getColorAttr(context, colors.getThemeAttributeId(i, 0));
|
||||
} else {
|
||||
mColors[2 * i + 1] = colors.getColor(i, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user