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

Commit 26f781db authored by Dan Zhang's avatar Dan Zhang Committed by android-build-merger
Browse files

Merge "Fix <UCP>[Power] toggled the power status"

am: b3eeb859

Change-Id: I7f56ece79f0eb10cc27d5c62d1c8300933b1c23b
parents bd317023 b3eeb859
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -514,8 +514,7 @@ abstract class HdmiCecLocalDevice {
    static boolean isPowerOffOrToggleCommand(HdmiCecMessage message) {
        byte[] params = message.getParams();
        return message.getOpcode() == Constants.MESSAGE_USER_CONTROL_PRESSED
                && (params[0] == HdmiCecKeycode.CEC_KEYCODE_POWER
                        || params[0] == HdmiCecKeycode.CEC_KEYCODE_POWER_OFF_FUNCTION
                && (params[0] == HdmiCecKeycode.CEC_KEYCODE_POWER_OFF_FUNCTION
                        || params[0] == HdmiCecKeycode.CEC_KEYCODE_POWER_TOGGLE_FUNCTION);
    }