Merge "[SF] Don't reset display state on reconnection" into rvc-dev

This commit is contained in:
Marin Shalamanov 2020-06-08 13:54:22 +00:00 committed by Android (Google) Code Review
commit 810a75538b

View file

@ -2675,7 +2675,8 @@ void SurfaceFlinger::processDisplayChanged(const wp<IBinder>& displayToken,
}
processDisplayAdded(displayToken, currentState);
if (currentState.physical) {
initializeDisplays();
const auto display = getDisplayDeviceLocked(displayToken);
setPowerModeInternal(display, hal::PowerMode::ON);
}
return;
}