Merge "Update battery saver schedule min trigger value" into tm-dev
This commit is contained in:
@@ -111,9 +111,8 @@ public class BatterySaverButtonPreferenceController extends
|
||||
|
||||
@Override
|
||||
public boolean setChecked(boolean stateOn) {
|
||||
// This screen already shows a warning, so we don't need another warning.
|
||||
return BatterySaverUtils.setPowerSaveMode(mContext, stateOn,
|
||||
false /* needFirstTimeWarning */);
|
||||
true /* needFirstTimeWarning */);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -40,7 +40,7 @@ public class BatterySaverScheduleRadioButtonsController {
|
||||
public static final String KEY_NO_SCHEDULE = "key_battery_saver_no_schedule";
|
||||
public static final String KEY_ROUTINE = "key_battery_saver_routine";
|
||||
public static final String KEY_PERCENTAGE = "key_battery_saver_percentage";
|
||||
public static final int TRIGGER_LEVEL_MIN = 5;
|
||||
public static final int TRIGGER_LEVEL_MIN = 10;
|
||||
|
||||
private Context mContext;
|
||||
private BatterySaverScheduleSeekBarController mSeekBarController;
|
||||
|
@@ -45,7 +45,7 @@ public class BatterySaverScheduleSeekBarController implements
|
||||
OnPreferenceChangeListener {
|
||||
|
||||
public static final int MAX_SEEKBAR_VALUE = 15;
|
||||
public static final int MIN_SEEKBAR_VALUE = 1;
|
||||
public static final int MIN_SEEKBAR_VALUE = 2;
|
||||
public static final String KEY_BATTERY_SAVER_SEEK_BAR = "battery_saver_seek_bar";
|
||||
|
||||
@VisibleForTesting
|
||||
|
Reference in New Issue
Block a user