Merge "CEC: Prevent NPE on HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED change"
This commit is contained in:
committed by
Android (Google) Code Review
commit
f420eb1106
@@ -523,7 +523,9 @@ public final class HdmiControlService extends SystemService {
|
||||
case Global.HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED:
|
||||
for (int type : mLocalDevices) {
|
||||
HdmiCecLocalDevice localDevice = mCecController.getLocalDevice(type);
|
||||
localDevice.setAutoDeviceOff(enabled);
|
||||
if (localDevice != null) {
|
||||
localDevice.setAutoDeviceOff(enabled);
|
||||
}
|
||||
}
|
||||
// No need to propagate to HAL.
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user