From 7dc3cf0b32df6335484f58973d46e9e623b732ff Mon Sep 17 00:00:00 2001 From: SongFerngWang Date: Thu, 8 Jun 2023 18:35:44 +0800 Subject: [PATCH] When config is changed, update the profile's visibility Bug: 286328464 Test: build pass Change-Id: I2beef587a71f9fdc1b1e8a97b9b5656dbb52a9f3 --- .../bluetooth/BluetoothDetailsProfilesController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java b/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java index 17304fd13ed..701967bfb5e 100644 --- a/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java +++ b/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java @@ -145,8 +145,8 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll profilePref.setEnabled(!mCachedDevice.isBusy()); } - if (profile instanceof LeAudioProfile && !mIsLeAudioToggleEnabled) { - profilePref.setVisible(false); + if (profile instanceof LeAudioProfile) { + profilePref.setVisible(mIsLeAudioToggleEnabled); } if (profile instanceof MapProfile) {