summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authorDevin Kim <dojip.kim@lge.com>2014-09-19 18:53:45 -0700
committerRuchi Kandoi <kandoiruchi@google.com>2014-09-23 17:09:28 -0700
commit9b0d442385fa1376f5115f9c167c50aa0d275b47 (patch)
tree93acaf2a8d7f7c51bc44af3e8915fbd106baca3a /healthd
parent07dda6b57c6a476177b68ad42966f24cbbdb04c1 (diff)
downloadsystem_core-9b0d442385fa1376f5115f9c167c50aa0d275b47.zip
system_core-9b0d442385fa1376f5115f9c167c50aa0d275b47.tar.gz
system_core-9b0d442385fa1376f5115f9c167c50aa0d275b47.tar.bz2
healthd: charger: Run animation even if capacity is 0
If charger is connected and battery capacity is 0, charging animation should run. The device would be booted up even if capacity is 0 in off-mode charging. At that time, it would take some time to be 1 from 0 for capacity if you use USB charger. Bug: 17606689 Change-Id: I37e0f1b6ab0ee1f6d833882e169bf3ea06cf2399
Diffstat (limited to 'healthd')
-rw-r--r--healthd/healthd_mode_charger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/healthd/healthd_mode_charger.cpp b/healthd/healthd_mode_charger.cpp
index 345f354..394feb8 100644
--- a/healthd/healthd_mode_charger.cpp
+++ b/healthd/healthd_mode_charger.cpp
@@ -68,7 +68,7 @@ char *locale;
#define UNPLUGGED_SHUTDOWN_TIME (10 * MSEC_PER_SEC)
#define BATTERY_FULL_THRESH 95
-#define SCREEN_ON_BATTERY_THRESH 1
+#define SCREEN_ON_BATTERY_THRESH 0
#define LAST_KMSG_PATH "/proc/last_kmsg"
#define LAST_KMSG_PSTORE_PATH "/sys/fs/pstore/console-ramoops"