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

am: 496267f93b

Change-Id: I40d9fb13190db81472cde320cccd9a868ea21516
This commit is contained in:
Michael Wright
2017-06-07 09:00:53 +00:00
committed by android-build-merger

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();