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

Commit f46d2db9 authored by Joe Onorato's avatar Joe Onorato
Browse files

Fix bug 1317754 - "Idle screen displays "Charging (100%)" even when fully charged."

parent 0a88e648
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -279,8 +279,12 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM

        if (mPluggedIn) {
            mBatteryInfoIcon.setImageResource(R.drawable.ic_lock_idle_charging);
            if (mBatteryLevel >= 100) {
                mBatteryInfoText.setText(R.string.lockscreen_charged);
            } else {
                mBatteryInfoText.setText(
                        getContext().getString(R.string.lockscreen_plugged_in, mBatteryLevel));
            }
        } else {
            mBatteryInfoIcon.setImageResource(R.drawable.ic_lock_idle_low_battery);
            mBatteryInfoText.setText(R.string.lockscreen_low_battery);