Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6185cc12 authored by Hongguang Chen's avatar Hongguang Chen
Browse files

Do not treat HDMI_RELATIVE_POSITION_UNKNOWN as a HDMI switch

Fix: 304599865
Test: manual
Change-Id: I3e21aa6e693ed7350a3aa236483ffe4b8b68d888
parent 4c5adb32
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -939,9 +939,10 @@ public final class TvInputInfo implements Parcelable {
                type = TYPE_HDMI;
                isHardwareInput = true;
                hdmiConnectionRelativePosition = getRelativePosition(mContext, mHdmiDeviceInfo);
                isConnectedToHdmiSwitch =
                        hdmiConnectionRelativePosition
                                != HdmiUtils.HDMI_RELATIVE_POSITION_DIRECTLY_BELOW;
                isConnectedToHdmiSwitch = hdmiConnectionRelativePosition
                                != HdmiUtils.HDMI_RELATIVE_POSITION_DIRECTLY_BELOW
                        && hdmiConnectionRelativePosition
                                != HdmiUtils.HDMI_RELATIVE_POSITION_UNKNOWN;
            } else if (mTvInputHardwareInfo != null) {
                id = generateInputId(componentName, mTvInputHardwareInfo);
                type = sHardwareTypeToTvInputType.get(mTvInputHardwareInfo.getType(), TYPE_TUNER);