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

Unverified Commit a2d31477 authored by Bruno Martins's avatar Bruno Martins Committed by Michael Bestas
Browse files

Keyguard: Hide battery indication on battery-less devices

Change-Id: Iaa995505aa580020906f38177ea16713a79997ad
parent 9de2528c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -635,7 +635,7 @@ public class KeyguardIndicationController {
    }

    private void updateLockScreenBatteryMsg(boolean animate) {
        if (mPowerPluggedIn || mEnableBatteryDefender) {
        if (mBatteryPresent && (mPowerPluggedIn || mEnableBatteryDefender)) {
            String powerIndication = computePowerIndication();
            if (DEBUG_CHARGING_SPEED) {
                powerIndication += ",  " + (mChargingWattage / 1000) + " mW";
@@ -651,7 +651,7 @@ public class KeyguardIndicationController {
                    animate);
        } else {
            mKeyguardLogger.log(TAG, LogLevel.DEBUG, "hide battery indication");
            // don't show the charging information if device isn't plugged in
            // don't show the charging information
            mRotateTextViewController.hideIndication(INDICATION_TYPE_BATTERY);
        }
    }