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

Commit 994c5722 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

Change-Id: I7b94bc0ce1c370d456cc9275aa1067929d4d95d0
parents 3ecd86b7 2763c2ba
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(),