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

Commit c66206ea authored by Sherry Huang's avatar Sherry Huang
Browse files

HDMI-CEC: Amend removal of CEC device in HdmiCecLocalDevice

deviceId was used to check if input is ready, should use id instead
because deviceId is device id of MHL.

Bug: b/398715369
Test: atest com.android.server.hdmi
Flag: EXEMPT Bugfix only
Change-Id: Ic7c8920d23d29ceffa4192440748335644e07ed0
parent 0c0cfa27
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -793,7 +793,7 @@ public class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
                    @Override
                    public void onDeviceDiscoveryDone(List<HdmiDeviceInfo> deviceInfos) {
                        for (HdmiDeviceInfo info : deviceInfos) {
                            if (!isInputReady(info.getDeviceId())) {
                            if (!isInputReady(info.getId())) {
                                mService.getHdmiCecNetwork().removeCecDevice(
                                        HdmiCecLocalDeviceTv.this, info.getLogicalAddress());
                            }