summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJinsuk Kim <jinsukkim@google.com>2014-05-28 17:42:56 +0900
committerJungshik Jang <jayjang@google.com>2014-06-02 10:58:02 +0900
commita8fd44b74b8822426cdc0e45351899c95bf30e16 (patch)
tree326e45fe2912ea7ba33315f05a486041a756f01a /core
parent304b4a7281ffe4153d21eb50ebed070f1cf685bc (diff)
downloadframeworks_base-a8fd44b74b8822426cdc0e45351899c95bf30e16.zip
frameworks_base-a8fd44b74b8822426cdc0e45351899c95bf30e16.tar.gz
frameworks_base-a8fd44b74b8822426cdc0e45351899c95bf30e16.tar.bz2
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
Diffstat (limited to 'core')
-rw-r--r--core/java/android/hardware/hdmi/HdmiCecMessage.java2
1 files changed, 1 insertions, 1 deletions
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);
}