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

Commit 149335ff authored by Bruno Martins's avatar Bruno Martins Committed by Aryan
Browse files

Keyguard: Hide battery indication on battery-less devices

Change-Id: Iaa995505aa580020906f38177ea16713a79997ad
parent dab4d01b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -607,7 +607,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";
@@ -623,7 +623,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);
        }
    }