Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8af93cb2 authored by Daniel Nishi's avatar Daniel Nishi
Browse files

batterymeter -> just meter.

This updates some of the names of the colors to make them more general
for non-battery usage.

Bug: 35245772
Test: Manual
Change-Id: I048f673037c4bd7279fd7c55f2d55be6b3618b41
parent ba4ac09d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ public class BatteryMeterDrawableBase extends Drawable {
            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.setColor(Utils.getDefaultColor(mContext, R.color.batterymeter_bolt_color));
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ public class BatteryMeterView extends LinearLayout implements
        TypedArray atts = context.obtainStyledAttributes(attrs, R.styleable.BatteryMeterView,
                defStyle, 0);
        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);
        atts.recycle();

+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ public class BatterySaverTile extends QSTileImpl<BooleanState> implements
        private final BatteryMeterDrawableBase mDrawable
                = new BatteryMeterDrawableBase(
                        mHost.getContext(),
                        mHost.getContext().getColor(R.color.batterymeter_frame_color));
                        mHost.getContext().getColor(R.color.meter_background_color));
        private View mCurrentView;

        @Override