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

am: 6d322b684a

Change-Id: If5635251a46e56aa3fde429f80c4bab6c790ed84
This commit is contained in:
Adrian Roos
2018-04-19 07:20:44 -07:00
committed by android-build-merger

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;