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

Commit 4ee736c7 authored by Hannah.Hsu's avatar Hannah.Hsu Committed by chien elvis
Browse files

Set SAM To Disabled On HdmiControl Disabled

Bug: 133375754

Change-Id: I2514b35429fb8a082cf74c5bb3c5fb47f16cdcc1
parent 2b0582e2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1651,6 +1651,10 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
        removeAction(SystemAudioAutoInitiationAction.class);
        removeAction(SystemAudioStatusAction.class);
        removeAction(VolumeControlAction.class);

        if (!mService.isControlEnabled()) {
            setSystemAudioMode(false);
        }
    }

    @ServiceThreadOnly