Merge "Fix <Routing Change> doesn't send on first switch."

This commit is contained in:
Treehugger Robot
2023-06-30 14:25:09 +00:00
committed by Gerrit Code Review

View File

@@ -377,6 +377,7 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
return; return;
} }
int oldPath = getActivePortId() != Constants.INVALID_PORT_ID int oldPath = getActivePortId() != Constants.INVALID_PORT_ID
&& getActivePortId() != Constants.CEC_SWITCH_HOME
? mService.portIdToPath(getActivePortId()) : getDeviceInfo().getPhysicalAddress(); ? mService.portIdToPath(getActivePortId()) : getDeviceInfo().getPhysicalAddress();
setActivePath(oldPath); setActivePath(oldPath);
if (mSkipRoutingControl) { if (mSkipRoutingControl) {