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

Commit 2dc797e2 authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

Merge "audio: apply volume upon hearing aid device connection"

am: 7b9184bf

Change-Id: Id79009433359321de2af226ca741aa912057e593
parents 1f36225e 7b9184bf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5954,6 +5954,9 @@ public class AudioService extends IAudioService.Stub
                                   address));
        sendMsg(mAudioHandler, MSG_ACCESSORY_PLUG_MEDIA_UNMUTE, SENDMSG_QUEUE,
                AudioSystem.DEVICE_OUT_HEARING_AID, 0, null, 0);
        sendMsg(mAudioHandler, MSG_SET_DEVICE_VOLUME, SENDMSG_QUEUE,
                            AudioSystem.DEVICE_OUT_HEARING_AID, 0,
                            mStreamStates[AudioSystem.STREAM_MUSIC], 0);
    }

    // must be called synchronized on mConnectedDevices