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

Commit 337ce19b authored by Jinsuk Kim's avatar Jinsuk Kim
Browse files

CEC: Switch active input after routing control

Makes sure the previous HDMI input gets switched to upon receiving
<Inactive Source> from the current active source device.

Bug: 18986597
Change-Id: I7120e81d75b5fd4cafd4b483e9b232b96e50f597
parent ac70b2d1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -119,10 +119,9 @@ final class RoutingControlAction extends HdmiCecFeatureAction {

    private void handleReportPowerStatus(int devicePowerStatus) {
        if (isPowerOnOrTransient(getTvPowerStatus())) {
            tv().updateActiveInput(mCurrentRoutingPath, mNotifyInputChange);
            if (isPowerOnOrTransient(devicePowerStatus)) {
                sendSetStreamPath();
            } else {
                tv().updateActiveInput(mCurrentRoutingPath, mNotifyInputChange);
            }
        }
        finishWithCallback(HdmiControlManager.RESULT_SUCCESS);