Merge "Revert "Not handling portSelect and deviceSelect when device is standby""

This commit is contained in:
TreeHugger Robot
2021-08-11 13:46:15 +00:00
committed by Android (Google) Code Review

View File

@@ -1680,11 +1680,6 @@ public class HdmiControlService extends SystemService {
Slog.e(TAG, "Callback cannot be null");
return;
}
if (isPowerStandby()) {
Slog.e(TAG, "Device is in standby. Not handling deviceSelect");
invokeCallback(callback, HdmiControlManager.RESULT_INCORRECT_MODE);
return;
}
HdmiCecLocalDeviceTv tv = tv();
if (tv == null) {
if (!mAddressAllocated) {
@@ -1727,11 +1722,6 @@ public class HdmiControlService extends SystemService {
Slog.e(TAG, "Callback cannot be null");
return;
}
if (isPowerStandby()) {
Slog.e(TAG, "Device is in standby. Not handling portSelect");
invokeCallback(callback, HdmiControlManager.RESULT_INCORRECT_MODE);
return;
}
HdmiCecLocalDeviceTv tv = tv();
if (tv != null) {
tv.doManualPortSwitching(portId, callback);