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

Commit a2f01d04 authored by Michael Wright's avatar Michael Wright Committed by android-build-merger
Browse files

Disable battery saver when booting with sufficient battery am: 2763c2ba am: 994c5722

am: 804a1d26

Change-Id: Ife535ae4d6854109a27b680f902b5fc0ace21db1
parents 05ff76ae 804a1d26
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -810,9 +810,10 @@ public final class PowerManagerService extends SystemService
    }

    private void updateLowPowerModeLocked() {
        if (mIsPowered && mLowPowerModeSetting) {
        if ((mIsPowered || !mBatteryLevelLow && !mBootCompleted) && mLowPowerModeSetting) {
            if (DEBUG_SPEW) {
                Slog.d(TAG, "updateLowPowerModeLocked: powered, turning setting off");
                Slog.d(TAG, "updateLowPowerModeLocked: powered or booting with sufficient battery,"
                        + " turning setting off");
            }
            // Turn setting off if powered
            Settings.Global.putInt(mContext.getContentResolver(),