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