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

Skip to content
Commit 54e5a759 authored by Angela Wang's avatar Angela Wang
Browse files

Fix showing hearing device icon for headphone device issue

When turn off and on Bluetooth or reboot the device, the hearing aid
info will accidentally set on any LE audio device. This cause the icon
display wrongly for these device.

HapClientProfile.getHearingAidType() will return 0 (valid value for
binaural hearing aid) even if the device doesn't support HAP. Need to
check if the device supports HAP before generating the hearing aid info.

Bug: 327680602
Test: atest CachedBluetoothDeviceManagerTest
Change-Id: If2ccd5c4551510051a1a3ee1181623f11da10ada
parent c7d04194
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment