OSDN Git Service

CEC: Let <Active Source> from the active source work
authorJinsuk Kim <jinsukkim@google.com>
Wed, 28 Jan 2015 07:37:17 +0000 (16:37 +0900)
committerJinsuk Kim <jinsukkim@google.com>
Wed, 28 Jan 2015 07:37:17 +0000 (16:37 +0900)
<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

services/core/java/com/android/server/hdmi/ActiveSourceHandler.java

index 59d5605..7f48768 100644 (file)
@@ -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);