Fix sticky battery saver toggle

It was persisting to settings secure instead of settings global.

Test: robotests pass
Bug: 128929858
Change-Id: I8c5bcc875d71096e70f1a70ec84e85d46c3abe43
This commit is contained in:
Salvador Martinez
2019-03-19 15:20:51 -07:00
parent e7668660d5
commit cbd35ab0d5
2 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ public class BatterySaverStickyPreferenceControllerTest {
}
private int getAutoDisableSetting() {
return Settings.System.getInt(mContext.getContentResolver(),
return Settings.Global.getInt(mContext.getContentResolver(),
LOW_POWER_STICKY_AUTO_DISABLE_ENABLED,
1);
}