diff options
| author | 2024-08-02 16:24:32 +0800 | |
|---|---|---|
| committer | 2024-08-21 13:35:19 -0700 | |
| commit | cd106f5c7847ed8404f0e8010c6bf23497e6c9d4 (patch) | |
| tree | 0a3c600ffb1148f0158b73a79028edf96ecf2353 /libs/androidfw/StringPool.cpp | |
| parent | 4f301b434fe8f02df4a3334019447bd320b34e90 (diff) | |
AudioService: Add makeHearingAidDeviceUnavailableLater
Currently, when Hearing Aid device becomes unavaliable due to BT adapter
disable, user can hear audio from device speaker for a split second.
This is because we make device unavaliable immediately for Hearing Aid.
Instead, it should become unavaliable after AUDIO_BECOMING_NOISY intent
is sent.
Since this is working correctly for A2DP, fix is to copy solution from
there for Hearing Aid code path, and split
makeHearingAidDeviceUnavailable into *Now and *Later versions.
Bug:361198689
Test: Disconnect Bluetooth when playing music while connected to a hearing aid, see if there is sound coming from the speaker.
Change-Id: I3446249f3dd1033079188fb87a7471456d38dab7
Signed-off-by: chenxin20 <chenxin20@xiaomi.com>
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions