summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJinsuk Kim <jinsukkim@google.com>2015-01-28 16:37:17 +0900
committerJinsuk Kim <jinsukkim@google.com>2015-01-28 16:37:17 +0900
commitc9914a22d827eba54fd7b928c84996bf6a62dc39 (patch)
tree9f25773b49e22744fef271e0572ebdf719f3cc3b
parent26faa0be670484b3f32b9e4b07533c3fbef540f5 (diff)
downloadframeworks_base-c9914a22d827eba54fd7b928c84996bf6a62dc39.zip
frameworks_base-c9914a22d827eba54fd7b928c84996bf6a62dc39.tar.gz
frameworks_base-c9914a22d827eba54fd7b928c84996bf6a62dc39.tar.bz2
CEC: Let <Active Source> from the active source work
<Active Source> from the device which is already in active source state is being ignored now, but it should work with an effect of putting input view foreground in case it is hidden behind home launcher overlay. For better user experience, this change lets the command from the active source takes effect to hide the overlay if present. Bug: 19171319 Change-Id: I43d2646f2ad470b3636e82ff71ac83cf0031ef6c
-rw-r--r--services/core/java/com/android/server/hdmi/ActiveSourceHandler.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/hdmi/ActiveSourceHandler.java b/services/core/java/com/android/server/hdmi/ActiveSourceHandler.java
index 59d5605..7f48768 100644
--- a/services/core/java/com/android/server/hdmi/ActiveSourceHandler.java
+++ b/services/core/java/com/android/server/hdmi/ActiveSourceHandler.java
@@ -62,11 +62,6 @@ final class ActiveSourceHandler {
void process(ActiveSource newActive, int deviceType) {
// Seq #17
HdmiCecLocalDeviceTv tv = mSource;
- ActiveSource activeSource = tv.getActiveSource();
- if (activeSource.equals(newActive)) {
- invokeCallback(HdmiControlManager.RESULT_SUCCESS);
- return;
- }
HdmiDeviceInfo device = mService.getDeviceInfo(newActive.logicalAddress);
if (device == null) {
tv.startNewDeviceAction(newActive, deviceType);