Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd371ec1 authored by Terry Heo's avatar Terry Heo Committed by Terry (Woncheol) Heo
Browse files

CEC: Prevent NPE on HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED change

Bug: 25954258
Change-Id: I68a9cf537f2fb7cedb0194562a155b00d83044cb
parent 2b69da51
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -523,8 +523,10 @@ public final class HdmiControlService extends SystemService {
                case Global.HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED:
                    for (int type : mLocalDevices) {
                        HdmiCecLocalDevice localDevice = mCecController.getLocalDevice(type);
                        if (localDevice != null) {
                            localDevice.setAutoDeviceOff(enabled);
                        }
                    }
                    // No need to propagate to HAL.
                    break;
                case Global.MHL_INPUT_SWITCHING_ENABLED: