diff options
author | Dima Zavin <dima@android.com> | 2011-09-22 15:49:04 -0700 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2011-09-25 22:19:49 -0700 |
commit | e0c70dad4b4d417182e4c0ba8adae199f2622582 (patch) | |
tree | a778793f8e32e13c1fb329c9c0819eb6e97e70be /charger/charger.c | |
parent | 0052abdafd7179fc4a7458f09d2f95c74dda0021 (diff) | |
download | system_core-e0c70dad4b4d417182e4c0ba8adae199f2622582.zip system_core-e0c70dad4b4d417182e4c0ba8adae199f2622582.tar.gz system_core-e0c70dad4b4d417182e4c0ba8adae199f2622582.tar.bz2 |
charger: show animation when the device is unplugged
Change-Id: I54af1bc61c73bbc993d1dff37174b16e1de5b7a4
Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'charger/charger.c')
-rw-r--r-- | charger/charger.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/charger/charger.c b/charger/charger.c index a6f8509..595bb66 100644 --- a/charger/charger.c +++ b/charger/charger.c @@ -749,6 +749,7 @@ static void handle_power_supply_state(struct charger *charger, int64_t now) if (charger->num_supplies_online == 0) { if (charger->next_pwr_check == -1) { charger->next_pwr_check = now + UNPLUGGED_SHUTDOWN_TIME; + kick_animation(charger->batt_anim); LOGI("[%lld] device unplugged: shutting down in %lld (@ %lld)\n", now, UNPLUGGED_SHUTDOWN_TIME, charger->next_pwr_check); } else if (now >= charger->next_pwr_check) { |