Merge "AOD: Ensure WakeLock is held for delayed dozeTimeTick" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-04-19 13:59:25 +00:00
committed by Android (Google) Code Review

View File

@@ -113,7 +113,7 @@ public class DozeUi implements DozeMachine.Part {
// The display buffers will be empty and need to be filled.
mHost.dozeTimeTick();
// The first frame may arrive when the display isn't ready yet.
mHandler.postDelayed(mHost::dozeTimeTick, 100);
mHandler.postDelayed(mWakeLock.wrap(mHost::dozeTimeTick), 100);
}
scheduleTimeTick();
break;