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

Bug: 262692976

Test: manually test by boot up TV

Change-Id: I18d58be62c0c28ec8aa5dd3f92c777950b54fd08
This commit is contained in:
Hannah.Hsu
2023-05-12 17:39:53 +08:00
committed by Hannah Hsu
parent 03626acc2d
commit ff84d52fbc

View File

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