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

Commit 2763c2ba authored by Michael Wright's avatar Michael Wright
Browse files

Disable battery saver when booting with sufficient battery

Bug: 29994369
Change-Id: I01d437c884e62e73dba3c1881544cfc36f953137
parent 867f6d5d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -808,9 +808,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(),