OSDN Git Service

CEC: Switch active input after routing control
authorJinsuk Kim <jinsukkim@google.com>
Wed, 21 Jan 2015 00:32:30 +0000 (09:32 +0900)
committerJinsuk Kim <jinsukkim@google.com>
Wed, 21 Jan 2015 00:38:33 +0000 (09:38 +0900)
Makes sure the previous HDMI input gets switched to upon receiving
<Inactive Source> from the current active source device.

Bug: 18986597
Change-Id: I7120e81d75b5fd4cafd4b483e9b232b96e50f597

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

index 435ab7f..ce5b9ab 100644 (file)
@@ -119,10 +119,9 @@ final class RoutingControlAction extends HdmiCecFeatureAction {
 
     private void handleReportPowerStatus(int devicePowerStatus) {
         if (isPowerOnOrTransient(getTvPowerStatus())) {
+            tv().updateActiveInput(mCurrentRoutingPath, mNotifyInputChange);
             if (isPowerOnOrTransient(devicePowerStatus)) {
                 sendSetStreamPath();
-            } else {
-                tv().updateActiveInput(mCurrentRoutingPath, mNotifyInputChange);
             }
         }
         finishWithCallback(HdmiControlManager.RESULT_SUCCESS);