Fix battery icon dark initialization
Test: visual Change-Id: I333436dd0ffb4a7791a98caa53054d01e9ff18ef Fixes: 36443516
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user