Merge "Fix trigger sensor lifecycle"

This commit is contained in:
Jorim Jaggi
2015-08-19 00:52:00 +00:00
committed by Android (Google) Code Review

View File

@@ -534,8 +534,8 @@ public class DozeService extends DreamService {
}
}
requestPulse(mPulseReason);
mRegistered = false;
requestPulse(mPulseReason);
updateListener(); // reregister, this sensor only fires once
// reset the notification pulse schedule, but only if we think we were not triggered