Merge "Fix stuck HDMI-CEC actions after boot"

This commit is contained in:
Treehugger Robot
2021-09-28 17:16:41 +00:00
committed by Gerrit Code Review

View File

@@ -556,6 +556,12 @@ public class HdmiControlService extends SystemService {
// on boot, if device is interactive, set HDMI CEC state as powered on as well
if (mPowerManager.isInteractive() && isPowerStandbyOrTransient()) {
mPowerStatus = HdmiControlManager.POWER_STATUS_ON;
// Start all actions that were queued because the device was in standby
if (mAddressAllocated) {
for (HdmiCecLocalDevice localDevice : getAllLocalDevices()) {
localDevice.startQueuedActions();
}
}
}
}