Disable battery saver when booting with sufficient battery
Bug: 29994369 Change-Id: I01d437c884e62e73dba3c1881544cfc36f953137
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user