Merge "Revert "Not handling portSelect and deviceSelect when device is standby""
This commit is contained in:
committed by
Android (Google) Code Review
commit
bc28c57884
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user