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

Commit 26fac414 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Trigger ACTION_AUDIO_BECOMING_NOISY when Hearing Aid is disconnected

Bug: 69623109
Test: connect to HA, stream music, power off HA, verify music stopped
Change-Id: I07af4776153bd6f5dc9ba8082e4b24f01d525969
parent eae9144a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5868,7 +5868,8 @@ public class AudioService extends IAudioService.Stub
            AudioSystem.DEVICE_OUT_WIRED_HEADSET | AudioSystem.DEVICE_OUT_WIRED_HEADPHONE |
            AudioSystem.DEVICE_OUT_ALL_A2DP | AudioSystem.DEVICE_OUT_HDMI |
            AudioSystem.DEVICE_OUT_ANLG_DOCK_HEADSET | AudioSystem.DEVICE_OUT_DGTL_DOCK_HEADSET |
            AudioSystem.DEVICE_OUT_ALL_USB | AudioSystem.DEVICE_OUT_LINE;
            AudioSystem.DEVICE_OUT_ALL_USB | AudioSystem.DEVICE_OUT_LINE |
            AudioSystem.DEVICE_OUT_HEARING_AID;

    // must be called before removing the device from mConnectedDevices
    // Called synchronized on mConnectedDevices