Merge "Bring back the sensing alarm. We need it!"

This commit is contained in:
Dianne Hackborn
2015-10-27 00:15:02 +00:00
committed by Android (Google) Code Review

View File

@@ -1500,7 +1500,7 @@ public class DeviceIdleController extends SystemService
mState = STATE_SENSING;
if (DEBUG) Slog.d(TAG, "Moved from STATE_IDLE_PENDING to STATE_SENSING.");
EventLogTags.writeDeviceIdle(mState, "step");
cancelAlarmLocked();
scheduleAlarmLocked(mConstants.SENSING_TIMEOUT, false);
cancelLocatingLocked();
mAnyMotionDetector.checkForAnyMotion();
mNotMoving = false;