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

Commit baa2812b authored by Jim Miller's avatar Jim Miller
Browse files

Fix 5386408: Fix battery state information propagation in Lock Screen

This fixes a bug where Lock Screen would sometimes inappropriately show
"charged" if it took a while for Lock Screen to get an update on the
battery state.  It now starts with the state set to BATTERY_STATUS_UNKNOWN
so we properly update listeners when we finally get battery information
in handleBatteryUpdate().

Change-Id: I71018a233f38b2f897ff2e6592d7e310550fa016
parent 338140f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ public class KeyguardUpdateMonitor {

        // take a guess to start
        mSimState = IccCard.State.READY;
        mBatteryStatus = BATTERY_STATUS_FULL;
        mBatteryStatus = BATTERY_STATUS_UNKNOWN;
        mBatteryLevel = 100;

        mTelephonyPlmn = getDefaultPlmn();