am e1f0bd83: am fd8e6504: charger: Do not suspend when disconnecting from charger

* commit 'e1f0bd83244e1ac96c6b023cfe12286cda8571c1':
  charger: Do not suspend when disconnecting from charger
This commit is contained in:
Devin Kim 2012-12-07 12:11:37 -08:00 committed by Android Git Automerger
commit deb8e39ede
1 changed files with 2 additions and 1 deletions

View File

@ -704,7 +704,8 @@ static void update_screen_state(struct charger *charger, int64_t now)
charger->next_screen_transition = -1;
gr_fb_blank(true);
LOGV("[%lld] animation done\n", now);
request_suspend(true);
if (charger->num_supplies_online > 0)
request_suspend(true);
return;
}