commit | 394833715db64f750bea77aa44f79ce11ea67673 | [log] [tgz] |
---|---|---|
author | althafvly <althafvly@gmail.com> | Fri Aug 02 13:31:53 2024 +0530 |
committer | Bruno Martins <bgcngm@gmail.com> | Fri Aug 09 08:40:25 2024 +0000 |
tree | dce75d4c7d1b1aa9e4a34fee07f6c37a5449d620 | |
parent | 4d1a86996c51fc22a20e2652b054f7fff274b295 [diff] |
BatteryMeterView: Battery icon available by default Change-Id: I3d1c6b4327fd25bdf66f5623b6b00fe220b6c26f
diff --git a/packages/SystemUI/src/com/android/systemui/battery/BatteryMeterView.java b/packages/SystemUI/src/com/android/systemui/battery/BatteryMeterView.java index dc58d36..ff3e561 100644 --- a/packages/SystemUI/src/com/android/systemui/battery/BatteryMeterView.java +++ b/packages/SystemUI/src/com/android/systemui/battery/BatteryMeterView.java
@@ -86,7 +86,7 @@ private int mShowPercentMode = MODE_DEFAULT; private String mEstimateText = null; private boolean mCharging; - private boolean mPresent; + private boolean mPresent = true; private boolean mIsOverheated; private boolean mDisplayShieldEnabled; // Error state where we know nothing about the current battery state
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryControllerImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryControllerImpl.java index 8647700..b9e1f35 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryControllerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryControllerImpl.java
@@ -85,7 +85,7 @@ protected int mLevel; protected boolean mPluggedIn; - protected boolean mPresent; + protected boolean mPresent = true; private int mPluggedChargingSource; protected boolean mCharging; private boolean mStateUnknown = false;