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

Commit 4db3acc9 authored by Amy's avatar Amy Committed by Amy Zhang
Browse files

Framework should not send out <Inactive Source> when user disables CEC

According to the spec, <Inactive Source> should only be sent when the
current device is going to standby or has nothing to broadcast.

Test: manual
Bug: 121436383
Change-Id: I07e16f311e82e18ab11981369fbdfbeddc01c4ff
(cherry picked from commit 424d00da8406232ce289faf5ab55a2541951280c)
parent 82c999d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -342,7 +342,7 @@ public class HdmiCecLocalDevicePlayback extends HdmiCecLocalDeviceSource {
        super.disableDevice(initiatedByCec, callback);

        assertRunOnServiceThread();
        if (!initiatedByCec && mIsActiveSource) {
        if (!initiatedByCec && mIsActiveSource && mService.isControlEnabled()) {
            mService.sendCecCommand(HdmiCecMessageBuilder.buildInactiveSource(
                    mAddress, mService.getPhysicalAddress()));
        }