From 888dba8c4e454247edef71d26f6862cffdc42721 Mon Sep 17 00:00:00 2001 From: timhypeng Date: Wed, 21 Aug 2019 15:33:42 +0800 Subject: [PATCH] slice is not updated when hearingAid device connection state changed - add hearingAid profile into onActiveDeviceChanged Bug: 139782394 Test: make -j42 RunSettingsRoboTests Change-Id: I1aa202dd7361e02690a5d993d0f61e6eb7835cff --- src/com/android/settings/media/MediaOutputIndicatorWorker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/media/MediaOutputIndicatorWorker.java b/src/com/android/settings/media/MediaOutputIndicatorWorker.java index 0937d4b3b4a..7b0b3dde413 100644 --- a/src/com/android/settings/media/MediaOutputIndicatorWorker.java +++ b/src/com/android/settings/media/MediaOutputIndicatorWorker.java @@ -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(); } }