Merge "Change range of battery saver schedule seekbar" into main

This commit is contained in:
Treehugger Robot
2025-02-20 03:22:43 -08:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ public class BatterySaverScheduleSeekBarController
implements OnPreferenceChangeListener, OnSeekBarChangeListener { implements OnPreferenceChangeListener, OnSeekBarChangeListener {
public static final int MAX_SEEKBAR_VALUE = 15; public static final int MAX_SEEKBAR_VALUE = 15;
public static final int MIN_SEEKBAR_VALUE = 2; public static final int MIN_SEEKBAR_VALUE = 4;
public static final String KEY_BATTERY_SAVER_SEEK_BAR = "battery_saver_seek_bar"; public static final String KEY_BATTERY_SAVER_SEEK_BAR = "battery_saver_seek_bar";
private static final int LEVEL_UNIT_SCALE = 5; private static final int LEVEL_UNIT_SCALE = 5;

View File

@@ -95,7 +95,7 @@ public class BatterySaverScheduleSeekBarControllerTest {
@Test @Test
public void updateSeekBar_percentageMode_hasCorrectProperties() { public void updateSeekBar_percentageMode_hasCorrectProperties() {
final CharSequence expectedTitle = "10%"; final CharSequence expectedTitle = "20%";
Settings.Global.putInt( Settings.Global.putInt(
mResolver, mResolver,
Global.AUTOMATIC_POWER_SAVE_MODE, Global.AUTOMATIC_POWER_SAVE_MODE,