slice is not updated when hearingAid device connection state changed

- add hearingAid profile into onActiveDeviceChanged

Bug: 139782394
Test: make -j42 RunSettingsRoboTests
Change-Id: I1aa202dd7361e02690a5d993d0f61e6eb7835cff
This commit is contained in:
timhypeng
2019-08-21 15:33:42 +08:00
committed by tim peng
parent 016822d5c3
commit 888dba8c4e

View File

@@ -74,7 +74,8 @@ public class MediaOutputIndicatorWorker extends SliceBackgroundWorker implements
@Override
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
if (bluetoothProfile == BluetoothProfile.A2DP) {
if (bluetoothProfile == BluetoothProfile.A2DP ||
bluetoothProfile == BluetoothProfile.HEARING_AID) {
notifySliceChange();
}
}