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
1 file changed