Merge "batterymeter -> just meter." into oc-dev
This commit is contained in:
@@ -141,7 +141,7 @@ public class BatteryMeterDrawableBase extends Drawable {
|
|||||||
mWarningTextPaint.setColor(mColors[1]);
|
mWarningTextPaint.setColor(mColors[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
mChargeColor = Utils.getDefaultColor(mContext, R.color.batterymeter_charge_color);
|
mChargeColor = Utils.getDefaultColor(mContext, R.color.meter_consumed_color);
|
||||||
|
|
||||||
mBoltPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
|
mBoltPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
|
||||||
mBoltPaint.setColor(Utils.getDefaultColor(mContext, R.color.batterymeter_bolt_color));
|
mBoltPaint.setColor(Utils.getDefaultColor(mContext, R.color.batterymeter_bolt_color));
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ public class BatteryMeterView extends LinearLayout implements
|
|||||||
TypedArray atts = context.obtainStyledAttributes(attrs, R.styleable.BatteryMeterView,
|
TypedArray atts = context.obtainStyledAttributes(attrs, R.styleable.BatteryMeterView,
|
||||||
defStyle, 0);
|
defStyle, 0);
|
||||||
final int frameColor = atts.getColor(R.styleable.BatteryMeterView_frameColor,
|
final int frameColor = atts.getColor(R.styleable.BatteryMeterView_frameColor,
|
||||||
context.getColor(R.color.batterymeter_frame_color));
|
context.getColor(R.color.meter_background_color));
|
||||||
mDrawable = new BatteryMeterDrawableBase(context, frameColor);
|
mDrawable = new BatteryMeterDrawableBase(context, frameColor);
|
||||||
atts.recycle();
|
atts.recycle();
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ public class BatterySaverTile extends QSTileImpl<BooleanState> implements
|
|||||||
private final BatteryMeterDrawableBase mDrawable
|
private final BatteryMeterDrawableBase mDrawable
|
||||||
= new BatteryMeterDrawableBase(
|
= new BatteryMeterDrawableBase(
|
||||||
mHost.getContext(),
|
mHost.getContext(),
|
||||||
mHost.getContext().getColor(R.color.batterymeter_frame_color));
|
mHost.getContext().getColor(R.color.meter_background_color));
|
||||||
private View mCurrentView;
|
private View mCurrentView;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user