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

Commit 49b47bbe authored by Jinsuk Kim's avatar Jinsuk Kim
Browse files

Invoke device event listeners when clearing CEC devices

This updates the client of HdmiControlService so that CEC devices
will disappear when thd CEC control is disabled.

Bug: 16467361

Change-Id: If6fad3be0aa3335aa7f955c0586040250e9c0e06
parent b35fba02
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -556,6 +556,9 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
    @ServiceThreadOnly
    private void clearDeviceInfoList() {
        assertRunOnServiceThread();
        for (HdmiCecDeviceInfo info : mSafeExternalInputs) {
            mService.invokeDeviceEventListeners(info, false);
        }
        mDeviceInfos.clear();
        updateSafeDeviceInfoList();
    }
@@ -1129,6 +1132,7 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {

        disableSystemAudioIfExist();
        disableArcIfExist();
        clearDeviceInfoList();
        checkIfPendingActionsCleared();
    }