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

Commit 83a07847 authored by Shubang Lu's avatar Shubang Lu Committed by Android (Google) Code Review
Browse files

Merge "Implement findAudioReceiverAddress for playback device."

parents 38a70170 53b8cb06
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -279,6 +279,14 @@ public class HdmiCecLocalDevicePlayback extends HdmiCecLocalDeviceSource {
        return Constants.ADDR_TV;
        return Constants.ADDR_TV;
    }
    }


    @Override
    protected int findAudioReceiverAddress() {
        if (mService.isSystemAudioActivated()) {
            return Constants.ADDR_AUDIO_SYSTEM;
        }
        return Constants.ADDR_TV;
    }

    @Override
    @Override
    @ServiceThreadOnly
    @ServiceThreadOnly
    protected void disableDevice(boolean initiatedByCec, PendingActionClearedCallback callback) {
    protected void disableDevice(boolean initiatedByCec, PendingActionClearedCallback callback) {