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

Commit 7f4342e5 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

audio: fix too early connection to HdmiControlService

Connect to HdmiControlService on systemReady(), not on constructor.

Change-Id: Ic91467f040fbffa48393e876997bd320ae9500db
parent 7226b9b6
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -583,11 +583,6 @@ public class AudioService extends IAudioService.Stub {
            setRotationForAudioSystem();
        }

        HdmiControlManager hdmiManager =
                (HdmiControlManager) mContext.getSystemService(Context.HDMI_CONTROL_SERVICE);
        // Null if device is not Tv.
        mHdmiTvClient = hdmiManager.getTvClient();

        context.registerReceiver(mReceiver, intentFilter);

        mUseMasterVolume = context.getResources().getBoolean(
@@ -627,6 +622,11 @@ public class AudioService extends IAudioService.Stub {
                                    BluetoothProfile.A2DP);
        }

        HdmiControlManager hdmiManager =
                (HdmiControlManager) mContext.getSystemService(Context.HDMI_CONTROL_SERVICE);
        // Null if device is not Tv.
        mHdmiTvClient = hdmiManager.getTvClient();

        sendMsg(mAudioHandler,
                MSG_CONFIGURE_SAFE_MEDIA_VOLUME_FORCED,
                SENDMSG_REPLACE,