Merge "Transit to correct state after alarm is fired"

This commit is contained in:
Amith Yamasani
2016-02-04 21:52:54 +00:00
committed by Gerrit Code Review

View File

@@ -1325,6 +1325,7 @@ public class DeviceIdleController extends SystemService
// Whoops, there is an upcoming alarm. We don't actually want to go idle.
if (mState != STATE_ACTIVE) {
becomeActiveLocked("alarm", Process.myUid());
becomeInactiveIfAppropriateLocked();
}
return;
}