summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2016-03-31 16:10:26 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-04-04 17:29:29 -0700
commitba09a13d6bfc772cce24bfa86eb146ec3839292e (patch)
tree7d4aa65f288d57895ca4882e007d09b81a5c2baf
parent8b1fe7d8b3d704ce841f4af12cd9d7b98eb9330d (diff)
downloadpackages_apps_Settings-ba09a13d6bfc772cce24bfa86eb146ec3839292e.tar.gz
packages_apps_Settings-ba09a13d6bfc772cce24bfa86eb146ec3839292e.tar.bz2
packages_apps_Settings-ba09a13d6bfc772cce24bfa86eb146ec3839292e.zip
Settings: Use correct LOW_POWER_MODE_TRIGGER default
* Low power mode was set to never enable automatically upstream in frameworks/base. We erroneously read from the config_lowBatteryWarningLevel resource for the default in change: 821fd62d952e380a260fc6edae8919284785796a, which is usually 15. * Reset this to 0 to align with the default value set in the provider. REF: CYNGNOS-2274 Change-Id: Iec32f972fe6d67b258ee17eff603c4a67c99d783
-rw-r--r--src/com/android/settings/fuelgauge/PowerUsageSummary.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/settings/fuelgauge/PowerUsageSummary.java b/src/com/android/settings/fuelgauge/PowerUsageSummary.java
index 8f8a5a44c..fda2a7e5c 100644
--- a/src/com/android/settings/fuelgauge/PowerUsageSummary.java
+++ b/src/com/android/settings/fuelgauge/PowerUsageSummary.java
@@ -285,10 +285,8 @@ public class PowerUsageSummary extends PowerUsageBase
case MENU_BATTERY_SAVER:
Resources res = getResources();
- final int defWarnLevel = res.getInteger(
- com.android.internal.R.integer.config_lowBatteryWarningLevel);
final int value = Settings.Global.getInt(getContentResolver(),
- Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, defWarnLevel);
+ Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0);
int selectedIndex = -1;
final int[] intVals = res.getIntArray(R.array.battery_saver_trigger_values);