Merge "Actually wait until the display is ready." into oc-dev

This commit is contained in:
TreeHugger Robot
2017-06-07 07:22:52 +00:00
committed by Android (Google) Code Review

View File

@@ -369,8 +369,8 @@ final class DisplayPowerState {
mPendingBacklight = backlight;
boolean changeInProgress = mStateChangeInProgress || mBacklightChangeInProgress;
mStateChangeInProgress = stateChanged;
mBacklightChangeInProgress = backlightChanged;
mStateChangeInProgress = stateChanged || mStateChangeInProgress;
mBacklightChangeInProgress = backlightChanged || mBacklightChangeInProgress;
if (!changeInProgress) {
mLock.notifyAll();