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

Commit d866b8aa authored by Jason Monk's avatar Jason Monk
Browse files

Fix battery icon dark initialization

Test: visual
Change-Id: I333436dd0ffb4a7791a98caa53054d01e9ff18ef
Fixes: 36443516
parent 7c8564e6
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) {