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

Commit 4fcbf0b9 authored by Jinsuk Kim's avatar Jinsuk Kim
Browse files

CEC: Explictly remove and add device when updating

Sending UPDATE_DEVICE doesn't translate remove/add devices
when its address (physical) has changed. Send expclit removal
addition event.

Bug: 18513567
Change-Id: Ibea6accf0358994b64289c1a785de21b598453f1
parent 6102bac7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1332,7 +1332,8 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
        if (old == null) {
            invokeDeviceEventListener(info, HdmiControlManager.DEVICE_EVENT_ADD_DEVICE);
        } else if (!old.equals(info)) {
            invokeDeviceEventListener(info, HdmiControlManager.DEVICE_EVENT_UPDATE_DEVICE);
            invokeDeviceEventListener(old, HdmiControlManager.DEVICE_EVENT_REMOVE_DEVICE);
            invokeDeviceEventListener(info, HdmiControlManager.DEVICE_EVENT_ADD_DEVICE);
        }
    }