From a8fd44b74b8822426cdc0e45351899c95bf30e16 Mon Sep 17 00:00:00 2001 From: Jinsuk Kim Date: Wed, 28 May 2014 17:42:56 +0900 Subject: DO NOT MERGE: Fix a couple of bugs in CEC services - Correct conversion for byte to int for cec opcode - Use the right Handler.obtainMessage() to pass an integer variable Change-Id: Ie3e86225f1702decce454aeb197911a371f51c17 --- core/java/android/hardware/hdmi/HdmiCecMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/java/android/hardware/hdmi/HdmiCecMessage.java b/core/java/android/hardware/hdmi/HdmiCecMessage.java index a8aa376..62fa279 100644 --- a/core/java/android/hardware/hdmi/HdmiCecMessage.java +++ b/core/java/android/hardware/hdmi/HdmiCecMessage.java @@ -46,7 +46,7 @@ public final class HdmiCecMessage implements Parcelable { public HdmiCecMessage(int source, int destination, int opcode, byte[] params) { mSource = source; mDestination = destination; - mOpcode = opcode; + mOpcode = opcode & 0xFF; mParams = Arrays.copyOf(params, params.length); } -- cgit v1.1