Merge "Fix stuck HDMI-CEC actions after boot"
This commit is contained in:
@@ -556,6 +556,12 @@ public class HdmiControlService extends SystemService {
|
|||||||
// on boot, if device is interactive, set HDMI CEC state as powered on as well
|
// on boot, if device is interactive, set HDMI CEC state as powered on as well
|
||||||
if (mPowerManager.isInteractive() && isPowerStandbyOrTransient()) {
|
if (mPowerManager.isInteractive() && isPowerStandbyOrTransient()) {
|
||||||
mPowerStatus = HdmiControlManager.POWER_STATUS_ON;
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user