am e0c70dad: charger: show animation when the device is unplugged

* commit 'e0c70dad4b4d417182e4c0ba8adae199f2622582':
  charger: show animation when the device is unplugged
This commit is contained in:
Dima Zavin 2011-09-26 13:14:56 -07:00 committed by Android Git Automerger
commit d7802a2fa4

View file

@ -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) {