Loading src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java +18 −2 Original line number Diff line number Diff line Loading @@ -353,6 +353,8 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll } LocalBluetoothProfile asha = mProfileManager.getHearingAidProfile(); LocalBluetoothProfile broadcastAssistant = mProfileManager.getLeAudioBroadcastAssistantProfile(); for (CachedBluetoothDevice leAudioDevice : mProfileDeviceMap.get(profile.toString())) { Log.d(TAG, Loading @@ -362,6 +364,12 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll if (asha != null) { asha.setEnabled(leAudioDevice.getDevice(), true); } if (broadcastAssistant != null) { Log.d(TAG, "device:" + leAudioDevice.getDevice().getAnonymizedAddress() + " disable LE broadcast assistant profile"); broadcastAssistant.setEnabled(leAudioDevice.getDevice(), false); } } if (!SystemProperties.getBoolean(ENABLE_DUAL_MODE_AUDIO, false)) { Loading @@ -388,6 +396,8 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll disableProfileBeforeUserEnablesLeAudio(mProfileManager.getHeadsetProfile()); } LocalBluetoothProfile asha = mProfileManager.getHearingAidProfile(); LocalBluetoothProfile broadcastAssistant = mProfileManager.getLeAudioBroadcastAssistantProfile(); for (CachedBluetoothDevice leAudioDevice : mProfileDeviceMap.get(profile.toString())) { Log.d(TAG, Loading @@ -397,6 +407,12 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll if (asha != null) { asha.setEnabled(leAudioDevice.getDevice(), false); } if (broadcastAssistant != null) { Log.d(TAG, "device:" + leAudioDevice.getDevice().getAnonymizedAddress() + " enable LE broadcast assistant profile"); broadcastAssistant.setEnabled(leAudioDevice.getDevice(), true); } } } Loading Loading
src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java +18 −2 Original line number Diff line number Diff line Loading @@ -353,6 +353,8 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll } LocalBluetoothProfile asha = mProfileManager.getHearingAidProfile(); LocalBluetoothProfile broadcastAssistant = mProfileManager.getLeAudioBroadcastAssistantProfile(); for (CachedBluetoothDevice leAudioDevice : mProfileDeviceMap.get(profile.toString())) { Log.d(TAG, Loading @@ -362,6 +364,12 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll if (asha != null) { asha.setEnabled(leAudioDevice.getDevice(), true); } if (broadcastAssistant != null) { Log.d(TAG, "device:" + leAudioDevice.getDevice().getAnonymizedAddress() + " disable LE broadcast assistant profile"); broadcastAssistant.setEnabled(leAudioDevice.getDevice(), false); } } if (!SystemProperties.getBoolean(ENABLE_DUAL_MODE_AUDIO, false)) { Loading @@ -388,6 +396,8 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll disableProfileBeforeUserEnablesLeAudio(mProfileManager.getHeadsetProfile()); } LocalBluetoothProfile asha = mProfileManager.getHearingAidProfile(); LocalBluetoothProfile broadcastAssistant = mProfileManager.getLeAudioBroadcastAssistantProfile(); for (CachedBluetoothDevice leAudioDevice : mProfileDeviceMap.get(profile.toString())) { Log.d(TAG, Loading @@ -397,6 +407,12 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll if (asha != null) { asha.setEnabled(leAudioDevice.getDevice(), false); } if (broadcastAssistant != null) { Log.d(TAG, "device:" + leAudioDevice.getDevice().getAnonymizedAddress() + " enable LE broadcast assistant profile"); broadcastAssistant.setEnabled(leAudioDevice.getDevice(), true); } } } Loading