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

Commit 17e605aa authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Fix battery icon dark initialization" into oc-dev

am: cb4ed821

Change-Id: I34cc7adb16ec21ba8c9cf210b3ca61b2c9506290
parents 834752d4 cb4ed821
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ public class BatteryMeterDrawableBase extends Drawable {
            mPlusPaint;
    private float mTextHeight, mWarningTextHeight;
    private int mIconTint = Color.WHITE;
    private float mOldDarkIntensity = 0f;
    private float mOldDarkIntensity = -1f;

    private int mHeight;
    private int mWidth;
+2 −0
Original line number Diff line number Diff line
@@ -98,6 +98,8 @@ public class BatteryMeterView extends LinearLayout implements
        addView(mBatteryIconView, mlp);

        updateShowPercent();
        // Init to not dark at all.
        onDarkChanged(new Rect(), 0, DarkIconDispatcher.DEFAULT_ICON_TINT);
    }

    public void setForceShowPercent(boolean show) {