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

Commit b17dc443 authored by Karl Rosaen's avatar Karl Rosaen
Browse files

Initialze battery state properly in pattern unlock screen.

parent 18fe8a50
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -181,9 +181,9 @@ class UnlockScreen extends LinearLayoutWithDefaultTouchRecepient
        mStatusSep = (TextView) findViewById(R.id.statusSep);
        mStatus2 = (TextView) findViewById(R.id.status2);

        mShowingBatteryInfo = true;
        mPluggedIn = true;
        mBatteryLevel = 100;
        mShowingBatteryInfo = mUpdateMonitor.shouldShowBatteryInfo();
        mPluggedIn = mUpdateMonitor.isDevicePluggedIn();
        mBatteryLevel = mUpdateMonitor.getBatteryLevel();
        mNextAlarm = mLockPatternUtils.getNextAlarm();
        updateStatusLines();