Loading packages/SystemUI/src/com/android/systemui/battery/BatteryMeterView.java +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ public class BatteryMeterView extends LinearLayout implements DarkReceiver { private int mShowPercentMode = MODE_DEFAULT; private String mEstimateText = null; private boolean mCharging; private boolean mPresent = true; private boolean mPresent; private boolean mIsOverheated; private boolean mDisplayShieldEnabled; // Error state where we know nothing about the current battery state Loading packages/SystemUI/src/com/android/systemui/battery/BatteryMeterViewController.java +4 −0 Original line number Diff line number Diff line Loading @@ -146,7 +146,11 @@ public class BatteryMeterViewController extends ViewController<BatteryMeterView> mBatteryController = batteryController; mView.setBatteryEstimateFetcher(mBatteryController::getEstimatedTimeRemainingString); mView.setBatteryPresence(mBatteryController.isPresent()); mView.setDisplayShieldEnabled(featureFlags.isEnabled(Flags.BATTERY_SHIELD_ICON)); if (!mBatteryController.isPresent()) { mView.setVisibility(View.GONE); } mSlotBattery = getResources().getString(com.android.internal.R.string.status_bar_battery); mSettingObserver = new SettingObserver(mMainHandler); Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryControllerImpl.java +2 −2 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ public class BatteryControllerImpl extends BroadcastReceiver implements BatteryC protected int mLevel; protected boolean mPluggedIn; protected boolean mPresent = true; protected boolean mPresent; private int mPluggedChargingSource; protected boolean mCharging; private boolean mStateUnknown = false; Loading Loading @@ -235,7 +235,7 @@ public class BatteryControllerImpl extends BroadcastReceiver implements BatteryC fireBatteryPresentChanged(); } boolean unknown = !mPresent; boolean unknown = !present; if (unknown != mStateUnknown) { mStateUnknown = unknown; fireBatteryUnknownStateChanged(); Loading Loading
packages/SystemUI/src/com/android/systemui/battery/BatteryMeterView.java +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ public class BatteryMeterView extends LinearLayout implements DarkReceiver { private int mShowPercentMode = MODE_DEFAULT; private String mEstimateText = null; private boolean mCharging; private boolean mPresent = true; private boolean mPresent; private boolean mIsOverheated; private boolean mDisplayShieldEnabled; // Error state where we know nothing about the current battery state Loading
packages/SystemUI/src/com/android/systemui/battery/BatteryMeterViewController.java +4 −0 Original line number Diff line number Diff line Loading @@ -146,7 +146,11 @@ public class BatteryMeterViewController extends ViewController<BatteryMeterView> mBatteryController = batteryController; mView.setBatteryEstimateFetcher(mBatteryController::getEstimatedTimeRemainingString); mView.setBatteryPresence(mBatteryController.isPresent()); mView.setDisplayShieldEnabled(featureFlags.isEnabled(Flags.BATTERY_SHIELD_ICON)); if (!mBatteryController.isPresent()) { mView.setVisibility(View.GONE); } mSlotBattery = getResources().getString(com.android.internal.R.string.status_bar_battery); mSettingObserver = new SettingObserver(mMainHandler); Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryControllerImpl.java +2 −2 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ public class BatteryControllerImpl extends BroadcastReceiver implements BatteryC protected int mLevel; protected boolean mPluggedIn; protected boolean mPresent = true; protected boolean mPresent; private int mPluggedChargingSource; protected boolean mCharging; private boolean mStateUnknown = false; Loading Loading @@ -235,7 +235,7 @@ public class BatteryControllerImpl extends BroadcastReceiver implements BatteryC fireBatteryPresentChanged(); } boolean unknown = !mPresent; boolean unknown = !present; if (unknown != mStateUnknown) { mStateUnknown = unknown; fireBatteryUnknownStateChanged(); Loading