Merge "Fix battery warning color lookup" into oc-dev

am: 834c260e98

Change-Id: Ic29ab89382f4d44e0777d3440ebbe7581a367220
This commit is contained in:
Jason Monk
2017-03-29 22:56:24 +00:00
committed by android-build-merger

View File

@@ -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);
}