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

Commit 1ad5cc3c authored by Jinsuk Kim's avatar Jinsuk Kim Committed by Android (Google) Code Review
Browse files

Merge "Enable selecting device whose power status is not on"

parents 005e9b81 6b2a6177
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -251,7 +251,9 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
        }
        }
        int targetAddress = targetDevice.getLogicalAddress();
        int targetAddress = targetDevice.getLogicalAddress();
        ActiveSource active = getActiveSource();
        ActiveSource active = getActiveSource();
        if (active.isValid() && targetAddress == active.logicalAddress) {
        if (targetDevice.getDevicePowerStatus() == HdmiControlManager.POWER_STATUS_ON
                && active.isValid()
                && targetAddress == active.logicalAddress) {
            invokeCallback(callback, HdmiControlManager.RESULT_SUCCESS);
            invokeCallback(callback, HdmiControlManager.RESULT_SUCCESS);
            return;
            return;
        }
        }