Rename battery saver schedule mode apis
The APIs that back these settings got renamed so this CL just refactors all the calls to use the new names. Test: robotests still pass Bug: 126944845 Change-Id: I2975c7c79998823058db2c0ced2e5cf02216a106
This commit is contained in:
@@ -90,10 +90,10 @@ public class BatterySaverController extends BasePreferenceController
|
||||
final int percent = Settings.Global.getInt(resolver,
|
||||
Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0);
|
||||
final int mode = Settings.Global.getInt(resolver,
|
||||
Global.AUTOMATIC_POWER_SAVER_MODE, PowerManager.POWER_SAVER_MODE_PERCENTAGE);
|
||||
Global.AUTOMATIC_POWER_SAVE_MODE, PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE);
|
||||
if (isPowerSaveOn) {
|
||||
return mContext.getString(R.string.battery_saver_on_summary);
|
||||
} else if (mode == PowerManager.POWER_SAVER_MODE_PERCENTAGE) {
|
||||
} else if (mode == PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE) {
|
||||
if (percent != 0) {
|
||||
return mContext.getString(R.string.battery_saver_off_scheduled_summary,
|
||||
Utils.formatPercentage(percent));
|
||||
|
||||
Reference in New Issue
Block a user