1. seandroid
  2. Untitled project
  3. system/core


Devin Kim  committed cf5c32c

charger: Do not suspend when disconnecting from charger

The device should be power off when disconnecting from charger.
If the device enter to suspend, the device couldn't handle the power off
process. So the device shouldn't suspend to handle the power off at that time

Bug: 7429504
Change-Id: I9a0a60e53f315cd83550dc730a33bc7bd464ef67

  • Participants
  • Parent commits dec27f6
  • Branches master

Comments (0)

Files changed (1)

File charger/charger.c

View file
         charger->next_screen_transition = -1;
         LOGV("[%lld] animation done\n", now);
-        request_suspend(true);
+        if (charger->num_supplies_online > 0)
+            request_suspend(true);