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

Commit 9872b257 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "audio: apply volume upon hearing aid device connection" into pi-dev

parents 34c2fcff 6ddaa111
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5923,6 +5923,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