When config is changed, update the profile's visibility

Bug: 286328464
Test: build pass
Change-Id: I2beef587a71f9fdc1b1e8a97b9b5656dbb52a9f3
This commit is contained in:
SongFerngWang
2023-06-08 18:35:44 +08:00
committed by SongFerng Wang
parent c0338e5dc3
commit 7dc3cf0b32

View File

@@ -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) {